/**
 * Thème Halloween — Gmod4Life FunRP
 */

:root,
body.theme-halloween {
  --accent: #ff6b1a;
  --accent2: #a855f7;
  --accent-glow: rgba(255, 107, 26, 0.4);
  --accent-soft: rgba(255, 107, 26, 0.14);
  --cyan: #fbbf24;
  --success: #22c55e;
}

body.theme-halloween .dash-bg {
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(255, 107, 26, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 5%, rgba(168, 85, 247, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(127, 29, 29, 0.25), transparent 55%),
    var(--bg);
}

body.theme-halloween .site-bg__shade {
  background:
    linear-gradient(180deg, rgba(20, 8, 4, 0.55) 0%, rgba(7, 9, 15, 0.4) 40%, rgba(7, 9, 15, 0.92) 78%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 50% 10%, rgba(255, 107, 26, 0.16) 0%, transparent 60%);
}

.halloween-banner {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 26, 0.4);
  background: linear-gradient(105deg, rgba(255, 107, 26, 0.18), rgba(168, 85, 247, 0.14));
  color: #ffedd5;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  animation: halloweenGlow 3.2s ease-in-out infinite;
}

.site-halloween-banner {
  position: relative;
  z-index: 30;
  padding: 11px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff7ed;
  background: linear-gradient(90deg, #7c2d12, #ea580c 45%, #7e22ce 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@keyframes halloweenGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 26, 0); }
  50% { box-shadow: 0 8px 28px rgba(255, 107, 26, 0.22); }
}

body.theme-halloween .btn-primary,
body.theme-halloween .btn-dash-primary {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

body.theme-halloween .online-pill {
  border-color: rgba(255, 107, 26, 0.4);
  background: rgba(255, 107, 26, 0.12);
}
body.theme-halloween .online-pill strong { color: #fdba74; }
body.theme-halloween .dot {
  background: #fb923c;
  box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.5);
}

/* Compte à rebours Halloween */
.hw-countdown {
  margin: 28px auto 0;
  max-width: 520px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 26, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 107, 26, 0.12), rgba(168, 85, 247, 0.08)),
    rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  text-align: center;
}
.hw-countdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fdba74;
  margin-bottom: 10px;
}
.hw-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hw-unit {
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hw-unit strong {
  display: block;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.hw-unit span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.hw-countdown-date {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}
.hw-countdown.is-done .hw-countdown-label {
  color: #86efac;
}
@media (max-width: 480px) {
  .hw-countdown { margin-top: 20px; padding: 14px; }
  .hw-unit strong { font-size: 1.15rem; }
}
