/* ============================================
   Fantasy Day - Custom Styles v2
   Framework: Bootstrap 5.3 (dark theme)
   Fonts: Open Sans (body) + Poppins (headings)
   Inspired by: FantasyDay redesign
   ============================================ */

/* --- CSS Variables --- */
:root {
  --fd-bg: #04000A;
  --fd-bg-light: #0a0d1a;
  --fd-bg-card: rgba(16,19,31,.65);
  --fd-primary: #0d6efd;
  --fd-secondary: #B20D5D;
  --fd-text: #dee2e6;
  --fd-text-muted: #8b8fa3;
  --fd-radius: 20px;
  --fd-shadow: 0 4px 30px rgba(0,0,0,.5);
  --fd-glow: 0 0 30px rgba(13,110,253,.15);
  --fd-gradient: linear-gradient(135deg, var(--fd-primary), var(--fd-secondary));
  --fd-border: 1px solid rgba(255,255,255,.07);
}

/* --- Base --- */
html { min-height: 100%; scroll-behavior: smooth; }
body {
  background: var(--fd-bg);
  color: var(--fd-text);
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--fd-primary); color: #fff; }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* --- Navbar --- */
.navbar {
  background: rgba(4,0,10,.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: .8rem 0;
  transition: background .3s;
}
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--fd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.7) !important;
  transition: color .3s;
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: #fff !important; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--fd-gradient);
  transition: all .3s;
  transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* --- Hero --- */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 80%, rgba(13,110,253,.12) 0%, transparent 50%),
              radial-gradient(circle at 20% 20%, rgba(178,13,93,.08) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2%, -2%); }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  position: relative;
}
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--fd-text-muted);
  max-width: 550px;
  margin: 1.2rem auto;
  position: relative;
}
.hero .overline {
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
}

/* --- Text Gradient --- */
.text-gradient {
  background: var(--fd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gradient Button --- */
.btn-gradient {
  background: var(--fd-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform .3s, box-shadow .3s;
}
.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--fd-secondary), var(--fd-primary));
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
}
.btn-gradient:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,110,253,.35); }
.btn-gradient:hover::before { opacity: 1; }

/* --- Section Spacing --- */
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--fd-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* --- Glassmorphism Card --- */
.fd-card {
  background: var(--fd-bg-card);
  border: var(--fd-border);
  border-radius: var(--fd-radius);
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s, border-color .35s;
}
.fd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fd-glow), var(--fd-shadow);
  border-color: rgba(13,110,253,.2);
}
.fd-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.fd-card:hover img { transform: scale(1.05); }
.fd-card .card-body { padding: 1.25rem; }

/* --- Area Buttons --- */
.area-btn {
  border-radius: 999px;
  padding: .5rem 1.3rem;
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: transform .25s, box-shadow .25s;
}
.area-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(13,110,253,.25);
}

/* --- Page Banner --- */
.page-banner {
  padding: 6rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(13,110,253,.1) 0%, transparent 70%);
}
.page-banner h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 1px;
}
.page-banner .section-subtitle { position: relative; }

/* --- Video Cards --- */
.video-card {
  background: var(--fd-bg-card);
  border: var(--fd-border);
  border-radius: var(--fd-radius);
  overflow: hidden;
  box-shadow: var(--fd-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fd-glow), var(--fd-shadow);
}

/* Video placeholder play button glow */
.video-placeholder:hover .play-overlay {
  background: rgba(0,0,0,.25);
}
.video-placeholder:hover .play-overlay i {
  transform: scale(1.15);
  text-shadow: 0 0 30px rgba(255,255,255,.5);
}
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  border-radius: inherit;
  transition: background .3s;
}
.play-overlay i {
  font-size: 4rem;
  color: rgba(255,255,255,.95);
  transition: transform .3s, text-shadow .3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Facebook video card link style */
.fb-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.fb-video-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24,119,242,.15) 0%, rgba(178,13,93,.1) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.fb-video-link:hover { color: #fff; transform: scale(1.01); }
.fb-video-link:hover::before { opacity: 1; }
.fb-video-link:hover .fb-play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(24,119,242,.4);
}
.fb-play-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: #1877f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 4px 20px rgba(24,119,242,.3);
}

/* --- Footer --- */
.fd-footer {
  background: linear-gradient(180deg, var(--fd-bg-light) 0%, #050510 100%);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 3rem 0 1.5rem;
  color: var(--fd-text-muted);
  font-size: .88rem;
}
.fd-footer a { color: var(--fd-text-muted); text-decoration: none; transition: color .3s; }
.fd-footer a:hover { color: #fff; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--fd-text);
  font-size: 1rem;
  transition: all .3s;
  border: 1px solid rgba(255,255,255,.08);
}
.social-icon:hover {
  background: var(--fd-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13,110,253,.35);
  border-color: transparent;
}

/* --- Modal (glassmorphism) --- */
.modal-content {
  background: rgba(16,19,31,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--fd-radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}

/* --- Countdown --- */
.countdown-box {
  background: var(--fd-bg-card);
  border: var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 1.5rem;
  min-width: 90px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.countdown-box .number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  background: var(--fd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdown-box .label {
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--fd-text-muted);
  letter-spacing: 1.5px;
}

/* --- Gallery --- */
.filter-btn {
  border-radius: 999px;
  transition: all .25s;
}
.filter-btn.active {
  background: var(--fd-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(13,110,253,.35);
}
.gallery-group a {
  position: relative;
  overflow: hidden;
}
.gallery-group img {
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.gallery-group a:hover img {
  transform: scale(1.08);
}

/* --- Participant card --- */
.participant-card {
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
}
.participant-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(13,110,253,.25);
  transition: border-color .3s, transform .3s;
  aspect-ratio: auto;
}
.participant-card:hover img {
  border-color: var(--fd-primary);
  transform: scale(1.08);
}

/* --- Utility --- */
.bg-fd { background: var(--fd-bg-light); }
.glass {
  background: var(--fd-bg-card);
  border: var(--fd-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--fd-radius);
}

/* --- Divider with glow --- */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,110,253,.3), transparent);
  border: none;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .page-banner { padding: 5rem 0 2.5rem; }
  .countdown-box .number { font-size: 1.8rem; }
  .countdown-box { min-width: 70px; padding: 1rem; }
  .fb-video-link { min-height: 160px; }
  .fb-play-icon { width: 55px; height: 55px; font-size: 1.4rem; }
  .play-overlay i { font-size: 3rem; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2rem; }
  .page-banner h1 { font-size: 1.6rem; }
}
