@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-dark: #050512;
  --bg-navy: #0a0a24;
  --gold: #FFD700;
  --gold-dark: #b8860b;
  --gold-light: #fff3a8;
  --gold-grad: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  --blue-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --correct: #00e676;
  --correct-grad: linear-gradient(135deg, #00e676 0%, #00a040 100%);
  --wrong: #ff1744;
  --wrong-grad: linear-gradient(135deg, #ff1744 0%, #b20020 100%);
  --buzzed: #ff9100;
  --buzzed-grad: linear-gradient(135deg, #ff9100 0%, #c65100 100%);
  --text-white: #ffffff;
  --text-gray: #a0aec0;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: radial-gradient(circle at 50% 50%, #0c0d30 0%, #050512 80%);
}

/* Background Particle Overlay Placeholder styling */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
}

/* Cinematic Typography */
.display-title {
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 2px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
  text-align: center;
}

.display-subtitle {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--text-white);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Glassmorphism components */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: 0 8px 32px 0 rgba(255, 215, 0, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

/* Buttons */
.btn-primary {
  background: var(--gold-grad);
  color: #000;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  filter: brightness(1.1);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-primary:disabled {
  background: #2a2a35;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--blue-grad);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

/* Sound/Vibration simulation (Visual Cues) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.shake-fx {
  animation: shake 0.4s ease-in-out;
}

@keyframes flash-white {
  0% { background-color: rgba(255, 255, 255, 0); }
  20% { background-color: rgba(255, 255, 255, 0.8); }
  100% { background-color: rgba(255, 255, 255, 0); }
}

.flash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  animation: flash-white 0.5s ease-out forwards;
}

@keyframes gold-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.pulse-gold-fx {
  animation: gold-pulse 1.5s infinite;
}

/* Netflix Intro reveal styling */
@keyframes netflix-reveal {
  0% {
    transform: scale(0.6);
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.netflix-intro {
  animation: netflix-reveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Spotlight effect */
.spotlight {
  position: relative;
}
.spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: -1;
}

/* F1 Scoreboard styles */
.scoreboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.scoreboard-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.scoreboard-row.active-team {
  border-left: 4px solid var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.scoreboard-cell {
  padding: 12px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: middle;
}

.scoreboard-cell.rank {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  width: 60px;
  text-align: center;
}

.scoreboard-cell.team-name {
  text-transform: uppercase;
}

.scoreboard-cell.score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: right;
  color: #ffffff;
}

/* General Layouts */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.text-gold {
  color: var(--gold);
}

.font-display {
  font-family: var(--font-display);
}

/* KBC Question Styles */
.kbc-question-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.kbc-question-box {
  width: 100%;
  min-height: 100px;
  border: 2px solid var(--gold);
  border-radius: 50px;
  position: relative;
  background: rgba(10, 10, 30, 0.95);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  margin-bottom: 30px;
  padding: 20px 40px;
  text-align: center;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-left: 10px solid var(--gold);
  border-right: 10px solid var(--gold);
}

.kbc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  width: 100%;
}

.kbc-option {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  border-left: 6px solid rgba(255, 255, 255, 0.3);
  border-right: 6px solid rgba(255, 255, 255, 0.3);
}

.kbc-option-prefix {
  color: var(--gold);
  font-weight: bold;
  margin-right: 12px;
}

.kbc-option.revealed {
  opacity: 1;
}

.kbc-option.hidden-option {
  opacity: 0;
  pointer-events: none;
}

.kbc-option.selected {
  background: var(--buzzed-grad);
  border-color: var(--buzzed);
  color: white;
}

.kbc-option.locked {
  background: rgba(255, 145, 0, 0.3);
  border-color: var(--buzzed);
  box-shadow: 0 0 15px rgba(255, 145, 0, 0.5);
  animation: gold-pulse 1s infinite;
}

.kbc-option.correct {
  background: var(--correct-grad) !important;
  border-color: var(--correct) !important;
  color: white;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

.kbc-option.wrong {
  background: var(--wrong-grad) !important;
  border-color: var(--wrong) !important;
  color: white;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
}

/* Custom Alert Banner */
.announcement-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  animation: netflix-reveal 0.5s ease-out;
}

/* Sound effect toggle icon styling */
.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}
