/**
 * Big Screen / Projector TV Stylesheet
 * Optimized for 1080p / 4K Classroom Display & Exciting TV Game-Show Dynamics
 */

body.display-screen {
  background: #060913;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.display-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.display-category-badge {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.display-timer {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.4);
  padding: 0.3rem 1.5rem;
  border-radius: 12px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.display-timer.hurry {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.5);
  animation: hurryPulse 0.6s infinite alternate;
}

@keyframes hurryPulse {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.timer-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timer-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  width: 100%;
  transition: width 0.1s linear;
}

/* Main Display Content */
.display-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3.5rem;
  justify-content: center;
  gap: 2rem;
}

.display-question-box {
  background: rgba(17, 24, 39, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.display-question-text {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
}

/* Big Choices Grid */
.display-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.display-choice {
  background: rgba(17, 24, 39, 0.85);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.display-choice-letter {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.display-choice.choice-a .display-choice-letter { background: var(--btn-a); }
.display-choice.choice-b .display-choice-letter { background: var(--btn-b); }
.display-choice.choice-c .display-choice-letter { background: var(--btn-c); }
.display-choice.choice-d .display-choice-letter { background: var(--btn-d); }

.display-choice-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.display-choice.correct-reveal {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.5);
  transform: scale(1.02);
}

.display-choice.wrong-reveal {
  opacity: 0.45;
  filter: grayscale(0.5);
}

/* Winner Banner Spotlight */
.winner-spotlight {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border: 2px solid #34d399;
  border-radius: 16px;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 50px rgba(16, 185, 129, 0.6);
  z-index: 200;
  animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  0% { transform: translate(-50%, 80px) scale(0.8); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.winner-icon {
  font-size: 2.5rem;
}

.winner-info {
  display: flex;
  flex-direction: column;
}

.winner-name {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.winner-sub {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d1fae5;
}

/* Display Footer with Quick Scores */
.display-footer-scores {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: rgba(11, 15, 25, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-player-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-player-pill.leader {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

/* Floating Host Control Ribbon */
.display-host-controls {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 150;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.display-host-controls:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* Results / Grand Podium View */
.display-results-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  animation: fadeIn 0.6s ease forwards;
  z-index: 10;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}

.results-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* 3D Podium */
.podium-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  height: 380px;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  text-align: center;
}

.podium-crown {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: floatBounce 1.5s ease-in-out infinite alternate;
}

@keyframes floatBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.podium-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-score {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.podium-slot.gold .podium-score { color: #fbbf24; }
.podium-slot.silver .podium-score { color: #cbd5e1; }
.podium-slot.bronze .podium-score { color: #f97316; }

.podium-pillar {
  width: 100%;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.pillar-1 {
  height: 240px;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.4);
}

.pillar-2 {
  height: 180px;
  background: linear-gradient(180deg, #94a3b8, #475569);
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 35px rgba(148, 163, 184, 0.3);
}

.pillar-3 {
  height: 130px;
  background: linear-gradient(180deg, #d97706, #78350f);
  border: 2px solid #f97316;
  box-shadow: 0 0 35px rgba(217, 119, 6, 0.3);
}

/* 4th-8th Runner Ups */
.results-runner-ups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
}

.runner-up-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
}
