/* ============================================================
   A4 Showroom - Canlı Çekiliş Ekranı Stilleri
   Full-screen TV display | Dark cinematic theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

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

:root {
  --gold: #e8a000;
  --gold-light: #ffc533;
  --gold-glow: rgba(232,160,0,0.3);
  --dark: #050508;
  --dark2: #0d0d14;
  --text: #f0f0f8;
  --font: 'Outfit', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
  font-family: var(--font);
  color: var(--text);
}

/* ============================================================
   Main Screen Layout
   ============================================================ */
#cekilis-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Background effects */
.bg-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(232,160,0,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(232,160,0,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,160,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,0,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Top bar */
.cekilis-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid rgba(232,160,0,0.15);
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(10px);
}

.cekilis-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cekilis-logo span { color: var(--gold); }

.cekilis-campaign-info {
  text-align: center;
}
.cekilis-campaign-label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.cekilis-campaign-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.cekilis-datetime {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(240,240,248,0.5);
}
.cekilis-time {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.05em;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* Center stage */
.cekilis-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding: 2rem;
}

/* ============================================================
   WAITING State
   ============================================================ */
.state-waiting {
  text-align: center;
  max-width: 700px;
  animation: fadeInUp 0.8s ease both;
}

.waiting-motor-img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 2rem;
  border: 1px solid rgba(232,160,0,0.2);
  box-shadow: 0 0 60px rgba(232,160,0,0.15);
}

.waiting-motor-placeholder {
  width: 320px;
  height: 200px;
  border-radius: 16px;
  margin: 0 auto 2rem;
  background: rgba(232,160,0,0.05);
  border: 1px solid rgba(232,160,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.4;
}

.waiting-day-label {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.waiting-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.waiting-motor-brand {
  font-size: 1.1rem;
  color: rgba(240,240,248,0.5);
  margin-bottom: 2rem;
}

.waiting-participants {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,160,0,0.1);
  border: 1px solid rgba(232,160,0,0.25);
  color: var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
}

.waiting-blink {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1s infinite;
}

/* ============================================================
   COUNTDOWN State
   ============================================================ */
.state-countdown {
  text-align: center;
  animation: fadeInUp 0.5s ease both;
}

.countdown-big-label {
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.countdown-big-number {
  font-size: clamp(10rem, 25vw, 18rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 0 80px var(--gold-glow), 0 0 160px rgba(232,160,0,0.15);
  animation: countDown 1s ease-in-out;
  font-variant-numeric: tabular-nums;
}

@keyframes countDown {
  from { transform: scale(1.3); opacity: 0.3; }
  to   { transform: scale(1);   opacity: 1; }
}

.countdown-sub {
  font-size: 1.2rem;
  color: rgba(240,240,248,0.4);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   SPINNING State
   ============================================================ */
.state-spinning {
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.spinning-label {
  font-size: 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.drum-roll {
  height: 120px;
  overflow: hidden;
  position: relative;
  background: rgba(232,160,0,0.04);
  border: 1px solid rgba(232,160,0,0.15);
  border-radius: 16px;
  margin-bottom: 2rem;
}

.drum-roll::before,
.drum-roll::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.drum-roll::before {
  top: 0;
  background: linear-gradient(to bottom, var(--dark2), transparent);
}

.drum-roll::after {
  bottom: 0;
  background: linear-gradient(to top, var(--dark2), transparent);
}

.drum-roll-track {
  animation: drumRollScroll 0.12s linear infinite;
}

.drum-roll-item {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.03em;
  padding: 0 2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes drumRollScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-120px); }
}

.spinning-highlight {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   WINNER State
   ============================================================ */
.state-winner {
  text-align: center;
  max-width: 900px;
  animation: winnerReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes winnerReveal {
  from { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.winner-trophy {
  font-size: 5rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.winner-badge-text {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.winner-name {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.winner-ticket {
  font-size: 1.1rem;
  color: rgba(240,240,248,0.5);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.winner-motor-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(232,160,0,0.1);
  border: 1px solid rgba(232,160,0,0.3);
  border-radius: 100px;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.winner-motor-icon {
  font-size: 1.6rem;
}

/* ============================================================
   Bottom status bar
   ============================================================ */
.cekilis-statusbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 3rem;
  border-top: 1px solid rgba(232,160,0,0.1);
  background: rgba(5,5,8,0.5);
  font-size: 0.8rem;
  color: rgba(240,240,248,0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 4px;
  animation: blink 1.5s infinite;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Canvas confetti layer */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
