/* ==========================================================================
   YOUTH PORTAL — UNIFIED STYLESHEET
   Light / Dark mode · Responsive · Matches main site design language
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — Light mode
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand / Accent (same as main site) --- */
  --accent:       #18bc9c;
  --accent-hover: #13a487;
  --accent-glow:  rgba(24,188,156,0.18);

  /* --- Youth identity gradient (hero, date-boxes, etc.) --- */
  --yg-a: #667eea;
  --yg-b: #764ba2;

  /* --- Surfaces --- */
  --bg:        #f3f6fa;
  --surface:   #ffffff;
  --surface-2: #f0f4f8;
  --surface-3: #eef2f7;

  /* --- Text --- */
  --text:       #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* --- Borders --- */
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  /* --- Header --- */
  --header-bg:     rgba(255,255,255,0.92);
  --header-border: rgba(0,0,0,0.07);
  --header-h:      68px;

  /* --- Nav --- */
  --nav-link: #334155;

  /* --- Inputs --- */
  --input-bg:          #ffffff;
  --input-border:      #cbd5e1;
  --input-text:        #1e293b;
  --input-placeholder: #94a3b8;
  --input-focus-ring:  rgba(24,188,156,0.22);

  /* --- Cards --- */
  --card-shadow:      0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(30,41,59,0.07);
  --card-shadow-hover:0 8px 32px rgba(24,188,156,0.14), 0 2px 8px rgba(0,0,0,0.08);

  /* --- Status --- */
  --c-success: #16a34a;
  --c-danger:  #e53e3e;
  --c-warning: #d97706;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10);

  /* --- Misc --- */
  --r:    12px;
  --r-sm: 8px;
  --r-lg: 18px;
  --t:    220ms ease;
  --t-fast: 140ms ease;

  /* --- Footer (always dark) --- */
  --footer-bg:   #1a2236;
  --footer-text: rgba(255,255,255,0.75);

  /* --- Youth admin main bg --- */
  --admin-bg: #f0f2f8;
}

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS — Dark mode
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg:        #0e1420;
  --surface:   #161e2e;
  --surface-2: #1c2539;
  --surface-3: #22304a;

  --text:       #dde6f3;
  --text-muted: #8796aa;
  --text-faint: #5c6e82;

  --border:        #2a3a52;
  --border-strong: #374d6a;

  --header-bg:     rgba(14,20,32,0.94);
  --header-border: rgba(255,255,255,0.06);

  --nav-link: #c4d0e0;

  --input-bg:          #1c2539;
  --input-border:      #2a3a52;
  --input-text:        #dde6f3;
  --input-placeholder: #5c6e82;
  --input-focus-ring:  rgba(24,188,156,0.20);

  --card-shadow:      0 1px 3px rgba(0,0,0,0.30), 0 4px 16px rgba(0,0,0,0.28);
  --card-shadow-hover:0 8px 32px rgba(24,188,156,0.18), 0 2px 8px rgba(0,0,0,0.38);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.28);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.32);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.44);

  --admin-bg: #0e1420;
}

/* CSS-only dark fallback (no JS) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:#0e1420; --surface:#161e2e; --surface-2:#1c2539; --surface-3:#22304a;
    --text:#dde6f3; --text-muted:#8796aa; --text-faint:#5c6e82;
    --border:#2a3a52; --border-strong:#374d6a;
    --header-bg:rgba(14,20,32,0.94); --header-border:rgba(255,255,255,0.06);
    --nav-link:#c4d0e0;
    --input-bg:#1c2539; --input-border:#2a3a52; --input-text:#dde6f3;
    --input-placeholder:#5c6e82; --input-focus-ring:rgba(24,188,156,0.20);
    --card-shadow:0 1px 3px rgba(0,0,0,0.30),0 4px 16px rgba(0,0,0,0.28);
    --card-shadow-hover:0 8px 32px rgba(24,188,156,0.18),0 2px 8px rgba(0,0,0,0.38);
    --shadow-sm:0 1px 2px rgba(0,0,0,0.28); --shadow-md:0 4px 12px rgba(0,0,0,0.32);
    --admin-bg:#0e1420;
  }
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: light dark;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background-color var(--t), color var(--t);
  padding-top: var(--header-h);
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* --------------------------------------------------------------------------
   4. HEADER — matches main site glass header
   -------------------------------------------------------------------------- */
.youth-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
          backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
  z-index: 1000;
  transition: background-color var(--t), border-color var(--t);
}

.youth-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  gap: 12px;
}

.youth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast), transform var(--t);
  flex-shrink: 0;
}
.youth-logo i { color: var(--accent); }
.youth-logo:hover { color: var(--accent); transform: scale(1.02); }

.youth-nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.youth-nav-links a {
  display: flex;
  align-items: center;
  padding: 7px 13px;
  color: var(--nav-link);
  font-weight: 500;
  font-size: 0.91rem;
  border-radius: 999px;
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}
.youth-nav-links a:hover,
.youth-nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Auth buttons in header */
.youth-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.youth-btn {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.youth-btn-outline {
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
}
.youth-btn-outline:hover { color: var(--accent); border-color: var(--accent); }
.youth-btn-solid { background: var(--accent); color: #fff; }
.youth-btn-solid:hover { background: var(--accent-hover); }

.youth-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.youth-user-menu a {
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  transition: all var(--t-fast);
}
.youth-user-menu a:hover { color: var(--accent); border-color: var(--accent); }

/* Theme toggle */
.youth-theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1;
  transition: all var(--t-fast);
}
.youth-theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile hamburger */
.youth-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
}
.youth-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

/* Mobile nav drawer */
.youth-nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.youth-nav-mobile.open { display: flex; }
.youth-nav-mobile a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  color: var(--nav-link);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--t-fast);
}
.youth-nav-mobile a:hover { color: var(--accent); background: var(--accent-glow); }
.youth-nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.youth-nav-mobile .mobile-auth {
  display: flex; gap: 8px; margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.youth-nav-mobile .mobile-auth a { flex: 1; justify-content: center; }

.youth-mobile-close {
  align-self: flex-end;
  background: none; border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  padding: 5px 9px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 6px;
  transition: all var(--t-fast);
}
.youth-mobile-close:hover { color: var(--accent); border-color: var(--accent); }

/* Nav overlay (mobile) */
.youth-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
}
.youth-nav-overlay.open { display: block; }

/* Theme toggle fixed on login page */
.login-theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.youth-hero {
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.youth-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1.5"/></svg>') repeat;
  opacity: 0.6;
}
.youth-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 18px; position: relative; z-index: 1; color: #fff; }
.youth-hero p  { font-size: 1.15rem; opacity: 0.93; max-width: 580px; margin: 0 auto 28px; position: relative; z-index: 1; }
.youth-hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 28px;
  border-radius: var(--r);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  font-family: inherit;
}
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 18px rgba(24,188,156,0.38); color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-secondary {
  background: #fff; color: var(--yg-a);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(102,126,234,0.4); color: #fff; }

/* --------------------------------------------------------------------------
   7. SECTION LAYOUTS
   -------------------------------------------------------------------------- */
.youth-section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.youth-section-alt  { background: var(--surface-2); padding: 60px 0; }
.youth-section-title { text-align: center; margin-bottom: 40px; }
.youth-section-title h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--text); margin-bottom: 10px; }
.youth-section-title p  { color: var(--text-muted); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   8. CARDS (generic)
   -------------------------------------------------------------------------- */
.youth-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 24px;
  transition: box-shadow var(--t), transform var(--t);
}
.youth-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.youth-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.youth-card-title  { font-size: 1.2rem; color: var(--text); font-weight: 600; }
.youth-card-icon   {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   9. STATS STRIP (home)
   -------------------------------------------------------------------------- */
.youth-stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}
.youth-stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.youth-stat-card {
  text-align: center;
  padding: 26px 16px;
  background: var(--surface-2);
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: var(--t);
}
.youth-stat-card:hover { background: var(--surface); box-shadow: var(--card-shadow); }
.youth-stat-number {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.youth-stat-label { color: var(--text-muted); margin-top: 8px; font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   10. PAGE HEADER BANNER
   -------------------------------------------------------------------------- */
.youth-page-header {
  text-align: center;
  padding: 44px 24px;
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  color: #fff;
  margin-bottom: 40px;
}
.youth-page-header h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 10px; color: #fff; }
.youth-page-header p  { opacity: 0.9; }

/* --------------------------------------------------------------------------
   11. GRID LAYOUTS
   -------------------------------------------------------------------------- */
.youth-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.youth-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 28px; }

/* --------------------------------------------------------------------------
   12. HOME — EVENT CARDS
   -------------------------------------------------------------------------- */
.youth-event-card {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.youth-event-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

.youth-event-image {
  height: 160px;
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem;
  overflow: hidden;
}
.youth-event-image img { width: 100%; height: 100%; object-fit: cover; }

.youth-event-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.youth-event-date {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); color: var(--accent);
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 10px;
}
.youth-event-title    { font-size: 1.15rem; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.youth-event-location { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }

/* --------------------------------------------------------------------------
   13. HOME — PROGRAM CARDS
   -------------------------------------------------------------------------- */
.youth-program-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yg-a);
  transition: var(--t);
}
.youth-program-card:hover { transform: translateX(4px); border-left-color: var(--yg-b); box-shadow: var(--card-shadow-hover); }
.youth-program-name   { font-size: 1.1rem; color: var(--text); font-weight: 700; margin-bottom: 10px; }
.youth-program-leader,
.youth-program-time   { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------------------
   14. HOME — CTA STRIP
   -------------------------------------------------------------------------- */
.youth-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0d9488 100%);
  color: #fff; padding: 60px 24px; text-align: center;
}
.youth-cta h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; color: #fff; }
.youth-cta p  { opacity: 0.92; margin-bottom: 22px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   15. EVENTS PAGE (list)
   -------------------------------------------------------------------------- */
.youth-events-page { padding: 40px 24px; max-width: 1100px; margin: 0 auto; }
.youth-events-list { display: grid; gap: 20px; }

.youth-event-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.youth-event-item:hover { box-shadow: var(--card-shadow-hover); }

.youth-event-date-box {
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 18px; text-align: center;
}
.youth-event-date-box .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.88; }
.youth-event-date-box .day   { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 3px 0; }
.youth-event-date-box .time  { font-size: 0.78rem; opacity: 0.82; }

.youth-event-info { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.youth-event-thumb { width: 100%; max-height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.youth-event-info h3      { color: var(--text); font-size: 1.15rem; margin: 0 0 7px; }
.youth-event-info .location { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 9px; display: flex; align-items: center; gap: 5px; }
.youth-event-info .description { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

.youth-event-action { display: flex; align-items: center; padding: 20px 18px; }

.btn-register, .btn-registered, .btn-login-event {
  padding: 10px 20px; border-radius: 999px; font-size: 0.9rem;
  font-weight: 600; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--t); border: none; cursor: pointer; font-family: inherit;
}
.btn-register    { background: var(--accent); color: #fff; }
.btn-register:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-registered  { background: var(--c-success); color: #fff; cursor: default; }
.btn-login-event { background: linear-gradient(135deg, var(--yg-a), var(--yg-b)); color: #fff; }
.btn-login-event:hover { opacity: 0.9; }

.youth-empty-state {
  text-align: center; padding: 52px 20px;
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--card-shadow); border: 1px solid var(--border); color: var(--text-muted);
}
.youth-empty-state i { font-size: 3.2rem; margin-bottom: 16px; opacity: 0.35; display: block; }

/* --------------------------------------------------------------------------
   16. PROGRAMS PAGE
   -------------------------------------------------------------------------- */
.youth-programs-page { padding: 40px 24px; max-width: 1100px; margin: 0 auto; }

.youth-programs-intro {
  background: var(--surface); padding: 30px; border-radius: var(--r);
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
  text-align: center; margin-bottom: 40px;
}
.youth-programs-intro h2 { color: var(--text); font-size: 1.5rem; margin-bottom: 10px; }
.youth-programs-intro p  { color: var(--text-muted); line-height: 1.8; max-width: 760px; margin: 0 auto; }

.youth-day-section { margin-bottom: 42px; }
.youth-day-title   { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.youth-day-title .icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; flex-shrink: 0;
}
.youth-day-title h3 { color: var(--text); font-size: 1.3rem; margin: 0; }

.youth-programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.youth-program-card--full {
  background: var(--surface); border-radius: var(--r);
  padding: 26px; box-shadow: var(--card-shadow); border: 1px solid var(--border);
  transition: box-shadow var(--t), transform var(--t);
}
.youth-program-card--full:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.youth-program-header     { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.youth-program-badge      { background: var(--accent); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.youth-program-details    { margin-top: 12px; }
.youth-program-detail     { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 7px; }
.youth-program-detail i   { color: var(--yg-a); width: 15px; text-align: center; }
.youth-program-description { color: var(--text-muted); line-height: 1.65; font-size: 0.9rem; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.youth-no-programs         { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.youth-no-programs i       { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.25; display: block; }

/* Program image (on public pages) */
.youth-program-img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: var(--r-sm); margin-bottom: 14px;
  background: linear-gradient(135deg, var(--yg-a), var(--yg-b));
}

/* --------------------------------------------------------------------------
   17. MEMBER DASHBOARD
   -------------------------------------------------------------------------- */
.welcome-section { background: var(--surface); padding: 26px 28px; border-radius: var(--r); margin-bottom: 26px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.welcome-section h1 { color: var(--text); font-size: 1.5rem; margin-bottom: 5px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.welcome-section p  { color: var(--text-muted); }

.status-badge         { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.status-badge.active  { background: #dcfce7; color: #166534; }
.status-badge.pending { background: #fef9c3; color: #854d0e; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.dashboard-card { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.dashboard-card + .dashboard-card { margin-top: 22px; }
.dashboard-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 2px solid var(--border); }
.dashboard-card-header h2 { color: var(--text); font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dashboard-card-header a  { color: var(--accent); font-size: 0.85rem; font-weight: 500; text-decoration: none; }

.event-list, .program-list { display: grid; gap: 10px; }
.event-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--border); gap: 10px; }
.event-info h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 3px; }
.event-info p  { color: var(--text-muted); font-size: 0.82rem; }

.registered-event { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #f0fdf4; border-radius: var(--r-sm); border: 1px solid #bbf7d0; border-left: 3px solid var(--c-success); gap: 10px; }
[data-theme="dark"] .registered-event { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.25); }
.registered-event .status { color: var(--c-success); font-size: 0.82rem; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 4px; }

.program-item    { padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--border); }
.program-item h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 4px; }
.program-item p  { color: var(--text-muted); font-size: 0.82rem; margin: 2px 0; display: flex; align-items: center; gap: 5px; }

.quick-links-grid { display: grid; gap: 8px; margin-top: 12px; }
.quick-link-item  { color: var(--yg-a); text-decoration: none; padding: 10px 13px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--border); display: flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 500; transition: var(--t); }
.quick-link-item:hover { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   18. MESSAGES / ALERTS
   -------------------------------------------------------------------------- */
.message { padding: 13px 18px; border-radius: var(--r-sm); margin-bottom: 22px; display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: 0.92rem; }
.message-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.message-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.message-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.message-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
[data-theme="dark"] .message-success { background: rgba(22,163,74,0.12);  color: #4ade80; border-color: rgba(22,163,74,0.3); }
[data-theme="dark"] .message-danger  { background: rgba(239,68,68,0.12);  color: #f87171; border-color: rgba(239,68,68,0.3); }
[data-theme="dark"] .message-warning { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.3); }
[data-theme="dark"] .message-info    { background: rgba(37,99,235,0.12);  color: #93c5fd; border-color: rgba(37,99,235,0.3); }

/* --------------------------------------------------------------------------
   19. FORMS (login, register, etc.)
   -------------------------------------------------------------------------- */
.form-group             { margin-bottom: 18px; }
.form-group label       { display: block; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea    {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  background: var(--input-bg);
  color: var(--input-text);
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--input-placeholder); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--input-focus-ring); }
.form-hint { color: var(--text-faint); font-size: 0.8rem; margin-top: 4px; }

.btn-login, .btn-register {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all var(--t); font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-login:hover, .btn-register:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(24,188,156,0.35); }

/* --------------------------------------------------------------------------
   20. LOGIN PAGE
   -------------------------------------------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 400px;
  padding: 38px 36px;
  animation: fadeInUp 0.32s ease;
}

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

.login-header       { text-align: center; margin-bottom: 28px; }
.login-header i     { font-size: 2.4rem; color: var(--accent); margin-bottom: 14px; display: block; }
.login-header h1    { font-size: 1.7rem; color: var(--text); margin-bottom: 6px; }
.login-header p     { color: var(--text-muted); font-size: 0.92rem; }
.login-footer       { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.login-footer a     { color: var(--accent); font-weight: 600; }
.login-footer a:hover { color: var(--accent-hover); }

.back-link          { text-align: center; margin-top: 14px; }
.back-link a        { color: var(--text-faint); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; transition: color var(--t-fast); }
.back-link a:hover  { color: var(--accent); }

/* --------------------------------------------------------------------------
   21. REGISTER PAGE
   -------------------------------------------------------------------------- */
.register-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 480px;
  padding: 38px 36px;
  animation: fadeInUp 0.32s ease;
}
.register-header    { text-align: center; margin-bottom: 26px; }
.register-header i  { font-size: 2.6rem; color: var(--accent); margin-bottom: 13px; display: block; }
.register-header h1 { font-size: 1.75rem; color: var(--text); margin-bottom: 6px; }
.register-header p  { color: var(--text-muted); }
.register-footer    { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.register-footer a  { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   22. FOOTER
   -------------------------------------------------------------------------- */
.youth-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 24px 0; margin-top: 64px; }
.youth-footer-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px;
  padding-bottom: 36px;
}
.youth-footer-section h4 { font-size: 1.05rem; margin-bottom: 16px; color: #fff; }
.youth-footer-section p,
.youth-footer-section a  { color: var(--footer-text); font-size: 0.92rem; line-height: 2; }
.youth-footer-section a:hover { color: var(--accent); }
.youth-footer-bottom {
  text-align: center; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45); font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   23. BADGES
   -------------------------------------------------------------------------- */
.badge         { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-primary { background: var(--yg-a); color: #fff; }
.badge-success { background: #22c55e; color: #fff; }
.badge-warning { background: #f59e0b; color: #fff; }
.badge-danger  { background: #ef4444; color: #fff; }

/* --------------------------------------------------------------------------
   24. TABLES
   -------------------------------------------------------------------------- */
.youth-table            { width: 100%; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.youth-table th, .youth-table td { padding: 13px 18px; text-align: left; }
.youth-table th         { background: linear-gradient(135deg, var(--yg-a) 0%, var(--yg-b) 100%); color: #fff; font-weight: 600; font-size: 0.88rem; }
.youth-table tr:nth-child(even) { background: var(--surface-2); }
.youth-table tr:hover           { background: var(--accent-glow); }

/* --------------------------------------------------------------------------
   25. YOUTH ADMIN PANEL (legacy classes kept for compatibility)
   -------------------------------------------------------------------------- */
.youth-admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 64px); }
.youth-admin-sidebar {
  background: #1e293b; padding: 24px 0;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-label { color: rgba(255,255,255,0.38); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 12px 14px 5px; display: block; }
.sidebar-link  { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: rgba(255,255,255,0.72); text-decoration: none; border-radius: 8px; font-size: 0.9rem; transition: all var(--t); margin-bottom: 2px; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-link i { width: 17px; text-align: center; }

.youth-admin-main    { padding: 28px; background: var(--admin-bg); overflow-y: auto; }
.youth-admin-header  { background: #1e293b; color: #fff; position: sticky; top: 0; z-index: 100; height: 64px; display: flex; align-items: center; }
.youth-admin-topbar  { padding: 0 26px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.youth-admin-logo    { font-size: 1.15rem; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.youth-admin-user    { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.88); font-size: 0.88rem; }
.youth-admin-user a  { color: #fff; text-decoration: none; padding: 6px 13px; border-radius: 7px; transition: background var(--t-fast); }
.youth-admin-user a:hover { background: rgba(255,255,255,0.15); }
.youth-admin-page-title h1 { font-size: 1.55rem; color: var(--text); font-weight: 700; }
.youth-admin-page-title p  { color: var(--text-muted); font-size: 0.9rem; margin-top: 3px; }

.youth-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 18px; margin-bottom: 26px; }
.youth-admin-stat  { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--border); display: flex; align-items: center; gap: 15px; transition: transform var(--t); }
.youth-admin-stat:hover { transform: translateY(-3px); }
.youth-admin-stat-icon { width: 50px; height: 50px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon-purple { background: rgba(102,126,234,0.12); color: var(--yg-a); }
.stat-icon-green  { background: rgba(34,197,94,0.12);  color: #16a34a; }
.stat-icon-orange { background: rgba(245,158,11,0.12); color: #d97706; }
.stat-icon-red    { background: rgba(239,68,68,0.12);  color: #dc2626; }
.stat-icon-teal   { background: rgba(24,188,156,0.12); color: var(--accent); }
.youth-admin-stat-info h3 { font-size: 1.8rem; color: var(--text); font-weight: 800; line-height: 1; }
.youth-admin-stat-info p  { color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; }

.youth-admin-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--card-shadow); border: 1px solid var(--border); overflow: hidden; margin-bottom: 22px; }
.youth-admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.youth-admin-card-header h2 { font-size: 1rem; color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.youth-admin-card-body { padding: 18px 20px; }

.youth-admin-table      { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.youth-admin-table th   { background: var(--surface-2); padding: 10px 15px; text-align: left; font-weight: 700; color: var(--text-muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
.youth-admin-table td   { padding: 11px 15px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.youth-admin-table tr:last-child td { border-bottom: none; }
.youth-admin-table tr:hover td { background: var(--surface-2); }

.btn-approve { padding: 5px 13px; background: #22c55e; color: #fff; border: none; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background var(--t-fast); }
.btn-approve:hover { background: #16a34a; }
.btn-reject  { padding: 5px 13px; background: #ef4444; color: #fff; border: none; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background var(--t-fast); }
.btn-reject:hover  { background: #dc2626; }
.btn-sm       { padding: 5px 13px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; border: none; transition: all var(--t-fast); }
.btn-edit-sm  { background: #eff6ff; color: #2563eb; }
.btn-edit-sm:hover  { background: #2563eb; color: #fff; }
.btn-delete-sm { background: #fff1f2; color: #e11d48; }
.btn-delete-sm:hover { background: #e11d48; color: #fff; }

/* --------------------------------------------------------------------------
   26. UTILITIES & ANIMATIONS
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

@keyframes fadeIn    { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:none; } }
@keyframes slideUp   { from { opacity:0; transform:translateY(28px);  } to { opacity:1; transform:none; } }
@keyframes spin      { to   { transform: rotate(360deg); } }

.animate-slide-up  { animation: slideUp 0.45s ease forwards; }
.animate-delay-1   { animation-delay: 0.1s; }
.animate-delay-2   { animation-delay: 0.2s; }

.loading { display:inline-block; width:18px; height:18px; border:2.5px solid rgba(255,255,255,.3); border-radius:50%; border-top-color:#fff; animation:spin 0.8s linear infinite; }

/* --------------------------------------------------------------------------
   27. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .youth-admin-layout { grid-template-columns: 1fr; }
  .youth-admin-sidebar { position:static; height:auto; display:flex; flex-wrap:wrap; gap:4px; padding:10px; }
  .sidebar-label { display:none; }
  .sidebar-link { padding:8px 13px; font-size:0.83rem; }
}

@media (max-width: 768px) {
  .youth-nav-links { display: none; }
  /* Hide only the login/auth buttons — keep the container so hamburger & theme toggle stay visible */
  .youth-auth-buttons .youth-btn,
  .youth-auth-buttons .youth-user-menu { display: none; }
  .youth-hamburger { display: flex; }

  .youth-event-item { grid-template-columns: 1fr; }
  .youth-event-date-box { flex-direction: row; padding: 13px 16px; gap: 13px; justify-content: flex-start; }
  .youth-event-date-box .day { font-size: 1.9rem; }
  .youth-event-action { padding: 0 16px 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .youth-admin-stats { grid-template-columns: repeat(2, 1fr); }
  .youth-admin-main { padding: 16px; }
  .login-container, .register-container { padding: 28px 22px; }
  .youth-stats-grid { grid-template-columns: 1fr; }
  .youth-grid, .youth-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .youth-admin-stats { grid-template-columns: 1fr; }
  .youth-hero { padding: 60px 16px; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .youth-hero-buttons { flex-direction: column; align-items: center; }
}
