/* Professional Headstand Game Styles */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base game container */
.gchs-game {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  color: #333;
}

/* Top control bar */
.gchs-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e1e5e9;
}

/* Labels and form elements */
.gchs-bar label {
  font-weight: 600;
  font-size: 14px;
  color: #495057;
  margin-bottom: 6px;
  display: block;
}

.gchs-bar select {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  color: #495057;
  transition: all 0.2s ease;
  min-width: 120px;
}

.gchs-bar select:hover {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.gchs-bar select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Primary action buttons */
.gchs-btn {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 100px;
  height: 44px;
}

.gchs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.gchs-btn:active {
  transform: translateY(0);
}

/* Primary button (Start) */
.gchs-btn.gchs-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.gchs-btn.gchs-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4) !important;
}

/* Secondary buttons (Pass, Correct) */
.gchs-btn:not(.gchs-primary) {
  background: white !important;
  color: #495057 !important;
  border: 2px solid #e1e5e9 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.gchs-btn:not(.gchs-primary):hover {
  background: #f8f9fa !important;
  border-color: #007bff !important;
  color: #007bff !important;
}

/* Stop button */
.gchs-btn[style*="background:#dc3545"] {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Score/stats display */
.gchs-counts {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: #495057 !important;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gchs-counts b {
  font-weight: 700;
  font-size: 18px;
  color: #007bff;
}

/* Main clue card */
.gchs-card {
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 48px 32px;
  margin: 32px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gchs-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#gchs-clue {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  max-width: 600px;
  margin: 0;
}

/* Footer controls */
.gchs-footer {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  margin-top: 24px;
}

.gchs-footer label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gchs-footer label:hover {
  color: #007bff;
}

.gchs-footer input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

.gchs-footer select {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: white;
  color: #495057;
  cursor: pointer;
}

/* Motion status */
#gchs-motion-status {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e9ecef;
  color: #6c757d;
  font-size: 12px;
}

/* Banner notifications */
#gchs-banner {
  margin-top: 16px !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
  border: 1px solid #f1c40f !important;
  color: #856404 !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.2);
}

#gchs-banner strong {
  font-weight: 700;
}

/* Summary/results */
.gchs-summary {
  background: white;
  border: 2px solid #28a745;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}

.gchs-summary img {
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Share buttons in summary */
#gchs-share-wrap .gchs-btn {
  margin: 0 8px;
}

/* Responsive design */
@media (max-width: 768px) {
  .gchs-game {
    padding: 16px;
  }
  
  .gchs-bar {
    padding: 16px;
    gap: 12px;
  }
  
  .gchs-counts {
    margin-left: 0 !important;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }
  
  #gchs-clue {
    font-size: 24px;
  }
  
  .gchs-card {
    padding: 32px 20px;
    margin: 24px 0;
  }
  
  .gchs-footer {
    gap: 16px;
    padding: 16px;
  }
  
  .gchs-btn {
    min-width: 80px;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .gchs-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .gchs-bar label {
    width: 100%;
  }
  
  .gchs-bar select {
    width: 100%;
    min-width: auto;
  }
  
  #gchs-clue {
    font-size: 20px;
  }
}