/**
 * QFL Youth theme – modern, aligned with main QFL design, more energetic.
 * Overrides style.css. Palette: slate + amber (QFL) with brighter accents for youth.
 */

:root {
  --youth-slate-900: #0f172a;
  --youth-slate-800: #1e293b;
  --youth-slate-700: #334155;
  --youth-slate-600: #475569;
  --youth-slate-400: #94a3b8;
  --youth-slate-300: #cbd5e1;
  --youth-amber-500: #f59e0b;
  --youth-amber-400: #fbbf24;
  --youth-amber-300: #fcd34d;
  --youth-orange-500: #f97316;
  --youth-bg: #f8fafc;
  --youth-card: #ffffff;
}

/* ---- Base ---- */
body {
  background: var(--youth-bg);
  color: var(--youth-slate-700);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a:hover,
a:active,
a:focus {
  color: var(--youth-amber-500);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--youth-slate-900);
  letter-spacing: -0.02em;
}

/* ---- Notification bar ---- */
#notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: linear-gradient(90deg, var(--youth-slate-800) 0%, var(--youth-slate-700) 100%);
  color: var(--youth-amber-300);
  font-weight: 700;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  text-align: center;
}

/* ---- Header ---- */
#header {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  top: 40px !important; /* below fixed notification bar */
  margin-top: 0 !important; /* override base style */
  height: 64px;
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.15);
}

@media (max-width: 660px) {
  #notification {
    padding: 8px 12px;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  #header {
    top: 48px !important;
    height: 56px;
  }
}

#header.header-transparent {
  background: transparent !important;
}

#header.header-scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  height: 64px;
}

#header #logo h1 {
  background: none !important;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

@media (max-width: 660px) {
  #header #logo h1 {
    font-size: 1rem;
  }
}

#header #logo h1 a {
  color: #fff !important;
}

.navbar > ul > li > a:before {
  background-color: var(--youth-amber-400);
  height: 3px;
  bottom: -4px;
}

.navbar a:hover,
.navbar li:hover > a {
  color: var(--youth-amber-300) !important;
}

/* Mobile nav toggle button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-toggle svg {
  display: block;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar ul {
    display: none;
  }
  
  .navbar.navbar-mobile .mobile-nav-toggle .menu-icon {
    display: none !important;
  }
  
  .navbar.navbar-mobile .mobile-nav-toggle .close-icon {
    display: block !important;
  }
}

/* ---- Hero ---- */
#hero {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.85) 100%),
    url(/assets/campuses/eastern-university-sports-ground.jpeg) center center;
  background-size: cover;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 104px; /* notification + header */
}

@media (max-width: 660px) {
  #hero {
    padding-top: 108px;
  }
}

/* ---- Mobile navbar overlay (youth theme) ---- */
nav#navbar.navbar-mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.98) !important;
  z-index: 9999 !important;
  padding: 0 !important;
  overflow: visible !important;
}

nav#navbar.navbar-mobile .mobile-nav-toggle {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10000 !important;
  color: #fff !important;
}

nav#navbar.navbar-mobile ul,
nav#navbar.navbar-mobile > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  top: 80px !important;
  left: 16px !important;
  right: 16px !important;
  bottom: auto !important;
  width: auto !important;
  background: var(--youth-slate-800) !important;
  border-radius: 16px !important;
  border: 1px solid var(--youth-slate-700) !important;
  padding: 8px 0 !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
}

nav#navbar.navbar-mobile ul li,
nav#navbar.navbar-mobile > ul > li {
  display: block !important;
  padding: 0 !important;
  visibility: visible !important;
}

nav#navbar.navbar-mobile ul li a,
nav#navbar.navbar-mobile > ul > li > a {
  display: block !important;
  visibility: visible !important;
  color: var(--youth-slate-300) !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--youth-slate-700) !important;
  text-transform: none !important;
  font-size: 1rem !important;
}

nav#navbar.navbar-mobile ul li:last-child a,
nav#navbar.navbar-mobile > ul > li:last-child > a {
  border-bottom: none !important;
}

nav#navbar.navbar-mobile ul li a:hover,
nav#navbar.navbar-mobile .active {
  color: var(--youth-amber-400) !important;
  background: rgba(251, 191, 36, 0.1) !important;
}

/* Highlight Adult Camp link in mobile menu */
nav#navbar.navbar-mobile ul li a[href="/"],
nav#navbar.navbar-mobile > ul > li > a[href="/"] {
  background: linear-gradient(90deg, var(--youth-amber-500), var(--youth-orange-500)) !important;
  color: var(--youth-slate-900) !important;
  font-weight: 700 !important;
  border-radius: 0 0 15px 15px !important;
  border-bottom: none !important;
}

#hero:before {
  background: transparent;
}

#hero .hero-container {
  position: relative;
  padding: 2rem 1rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

#hero h2, #hero h3, #hero h4 {
  color: var(--youth-slate-300);
  font-weight: 600;
}

#hero #location h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

#hero #location .university {
  color: #fff !important;
  text-decoration: none;
  border-bottom: 2px solid var(--youth-amber-400);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

#hero #location .university:hover {
  color: var(--youth-amber-300) !important;
  border-bottom-color: var(--youth-amber-300);
}

/* Hero CTAs – energetic, high contrast */
#hero .btn-get-started {
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

#hero .btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

#hero .btn-get-started[style*="rgba(38, 154, 150)"] {
  background: var(--youth-amber-500) !important;
  border-color: var(--youth-amber-400);
  color: var(--youth-slate-900) !important;
}

#hero .btn-get-started[style*="rgba(38, 154, 150)"]:hover {
  background: var(--youth-amber-400) !important;
  border-color: var(--youth-amber-300);
}

#hero .btn-get-started[style*="#9a262a"] {
  background: var(--youth-orange-500) !important;
  border-color: var(--youth-orange-500);
  color: #fff !important;
}

#hero .btn-get-started[style*="#9a262a"]:hover {
  background: #ea580c !important;
  border-color: #ea580c;
}

#hero span .btn-get-started:not([style*="background"]) {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

#hero span .btn-get-started:not([style*="background"]):hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--youth-amber-400);
  color: var(--youth-amber-300);
}

/* ---- Main content area ---- */
#main {
  background: var(--youth-bg);
}

#main > div.mb-8 {
  margin-top: 40px;
  padding: 0 0.75rem;
  background: transparent;
}

#main > div.mb-8 img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

/* ---- About section ---- */
#about {
  background: var(--youth-bg);
  padding: 48px 0 !important;
}

#about .about-container .title {
  color: var(--youth-slate-900);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

#about .about-container .content {
  background: transparent;
}

#about .about-container p {
  color: var(--youth-slate-600);
  line-height: 1.7;
}

#about .about-container .icon-box {
  background: var(--youth-card);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid var(--youth-slate-300);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

#about .about-container .icon-box:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}

#about .about-container .icon-box .icon {
  background: linear-gradient(135deg, var(--youth-amber-400), var(--youth-amber-500));
  border: none;
  color: var(--youth-slate-900);
  width: 52px;
  height: 52px;
}

#about .about-container .icon-box .icon svg {
  color: var(--youth-slate-900);
}

#about .about-container .icon-box .title {
  margin-left: 68px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
}

#about .about-container .icon-box .description {
  margin-left: 68px;
  font-size: 0.95rem;
  color: var(--youth-slate-600);
}

#about .about-container .icon-box .description a {
  color: var(--youth-amber-500);
  font-weight: 600;
}

#about .about-container .icon-box .description a:hover {
  color: var(--youth-orange-500);
}

/* Speaker block ---- */
#speaker #about {
  background: var(--youth-slate-800) !important;
  padding: 3rem 0 !important;
}

#speaker #about .content,
#speaker #about .content p,
#speaker #about .section-description {
  background: transparent !important;
  color: var(--youth-slate-300) !important;
}

#speaker #about .title {
  color: #fff !important;
}

#speaker #about .content a {
  color: var(--youth-amber-400);
}

#speaker #about .content a:hover {
  color: var(--youth-amber-300);
}

#speaker .about-container .background img {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ---- Facts / Schedule ---- */
#facts {
  background: var(--youth-card);
  padding: 4rem 0 !important;
  border-top: 1px solid var(--youth-slate-300);
}

#facts .section-title {
  color: var(--youth-slate-900);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

#facts .section-description {
  color: var(--youth-slate-600);
}

#facts .portfolio-info {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

#facts .portfolio-info img {
  border-radius: 16px;
}

/* ---- Call to action ---- */
#call-to-action {
  background:
    linear-gradient(135deg, var(--youth-slate-900) 0%, var(--youth-slate-800) 50%, var(--youth-slate-700) 100%) !important;
  padding: 4rem 0 !important;
  background-attachment: scroll !important;
}

#call-to-action .cta-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

#call-to-action .cta-text {
  color: var(--youth-slate-300);
}

#call-to-action .cta-btn {
  background: var(--youth-amber-500) !important;
  border-color: var(--youth-amber-500) !important;
  color: var(--youth-slate-900) !important;
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

#call-to-action .cta-btn:hover {
  background: var(--youth-amber-400) !important;
  border-color: var(--youth-amber-400) !important;
  color: var(--youth-slate-900) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

/* ---- Contact ---- */
#contact {
  background: var(--youth-bg);
  padding: 4rem 0 !important;
}

#contact .section-title {
  color: var(--youth-slate-900);
  font-weight: 800;
}

#contact .section-description {
  color: var(--youth-slate-600);
}

#contact .footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

#contact .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--youth-slate-700) !important;
  color: #fff !important;
  transition: background 0.2s, transform 0.2s;
}

#contact .social-link:hover {
  background: var(--youth-amber-500) !important;
  color: var(--youth-slate-900) !important;
  transform: translateY(-2px);
}

#contact .social-link svg {
  width: 20px;
  height: 20px;
}

#contact .mt-2.text-center .social-link {
  width: auto;
  padding: 0 1rem;
  border-radius: 12px;
}

/* ---- Footer ---- */
#footer {
  background: var(--youth-slate-900) !important;
  padding: 1.25rem 0;
  color: var(--youth-slate-400);
  font-size: 0.9rem;
}

#footer .copyright {
  color: var(--youth-slate-400);
}

/* ---- Back to top ---- */
.back-to-top {
  background: var(--youth-amber-500);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  right: 20px;
  bottom: 20px;
}

.back-to-top:hover {
  background: var(--youth-amber-400);
}

.back-to-top svg {
  color: var(--youth-slate-900);
}

/* ---- Section header divider (QFL-style) ---- */
.section-header .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--youth-amber-500), var(--youth-amber-400));
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* Energetic subtle pulse on primary buttons (optional) */
@keyframes youth-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(251, 191, 36, 0.4); }
}

#hero .btn-get-started[style*="rgba(38, 154, 150)"] {
  animation: youth-glow 3s ease-in-out infinite;
}
