/* ===== STEREO GAME STYLES ===== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Unified Theme Variables */
  --bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --bg-secondary: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-primary: #4f46e5;
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 50px rgba(79, 70, 229, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Game Specific Colors */
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-400: #60a5fa;
  --pink-400: #f472b6;
  --green-400: #4ade80;
  --yellow-400: #fbbf24;
  --red-400: #f87171;
  --text-muted: #94a3b8;
}

html, body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UNIFIED NAVIGATION ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.current-game {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .current-game {
    font-size: 0.8rem;
  }
}

/* ===== VOLUME CONTROL ===== */
.volume-control {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-primary);
  z-index: 1000;
}

.volume-control label {
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.volume-control input[type="range"] {
  width: 80px;
  height: 4px;
  background: var(--purple-600);
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--cyan-400);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--cyan-400);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.volume-control span {
  font-size: 0.8rem;
  min-width: 35px;
  color: var(--text-muted);
}

/* ===== GAME WRAPPER ===== */
.game-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 60px 20px 20px;
}

/* ===== GAME CONTAINER ===== */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: scale(0.8);
  transform-origin: center;
}

/* Responsive scaling */
@media (max-width: 768px) {
  .game-container {
    transform: scale(0.9);
    padding: 1.5rem;
  }
  
  .volume-control {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .game-container {
    transform: scale(1);
    padding: 1rem;
  }
}

.game-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== HEADER ===== */
.game-header {
  text-align: center;
}

.game-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-400);
}

/* ===== INSTRUCTIONS ===== */
.instructions {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
}

.instructions p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== CONTROLS SECTION ===== */
.controls-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-icon {
  font-size: 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  color: white;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.6);
}

.btn-action {
  background: linear-gradient(135deg, var(--green-400), #10b981);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6);
}

/* ===== STEREO SECTION ===== */
.stereo-section {
  display: flex;
  justify-content: center;
}

.stereo-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  padding: 2rem;
  box-shadow: var(--shadow-primary);
  overflow: visible;
  min-width: 400px;
}

.stereo-interface {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stereo-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.stereo-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.stereo-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.stereo-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}

.stereo-slider {
  width: 100%;
  height: 8px;
  background: linear-gradient(135deg, var(--purple-600), var(--cyan-400));
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.stereo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-400));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
  border: 2px solid white;
}

.stereo-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-400));
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

.value-display {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-400);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  min-width: 80px;
  text-align: center;
}

/* ===== ACTION SECTION ===== */
.action-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== RESULT SECTION ===== */
.result-section {
  display: flex;
  justify-content: center;
}

.result-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  padding: 2rem;
  box-shadow: var(--shadow-primary);
  text-align: center;
  min-width: 400px;
}

.result-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.result-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.result-value {
  font-weight: 700;
  color: var(--cyan-400);
  font-size: 1.1rem;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  padding: 2rem;
  box-shadow: var(--shadow-primary);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-500), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-body {
  margin-bottom: 2rem;
}

.final-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.score-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan-400);
}

.modal-footer {
  display: flex;
  justify-content: center;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
} 