/* HBCU Culture Map v2 — Events-First Design */

:root {
  --gold: #F0B429;
  --gold-dark: #C8960C;
  --green: #1A6E3C;
  --green-light: #3AAA6A;

  --bg: #F8F5EE;
  --surface: #FFFFFF;
  --surface2: #F2EFE6;
  --border: #DDD8CC;
  --text: #1A1611;
  --muted: #5C5648;
  --faint: #A09680;
  --inverse: #0F0D09;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;
  --shadow: 0 2px 12px rgba(26,22,17,.08);
  --shadow-lg: 0 8px 32px rgba(26,22,17,.12);
  --t: 160ms cubic-bezier(.16,1,.3,1);

  --max: 1200px;
  --font-display: 'Bebas Neue', Georgia, serif;
  --font: 'DM Sans', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
  --bg: #0F0D09; --surface: #161410; --surface2: #1C1916;
  --border: #2C2820; --text: #E8E0D0; --muted: #8C8272; --faint: #5C5448;
  --inverse: #F8F5EE;
  --shadow: 0 2px 12px rgba(0,0,0,.35); --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-dark); }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .05em; color: var(--text); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color var(--t); }
.nav-link:hover { color: var(--gold); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r-full);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--t);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; height: 2px; width: 22px; background: var(--text); border-radius: 2px; }
.nav-mobile-menu { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.nav-mobile-menu a { padding: 14px 20px; font-size: 1rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border); }
.nav-mobile-menu.open { display: flex; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--r-full);
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  transition: all var(--t); border: 2px solid transparent;
}
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--inverse); }
.btn-gold:hover { background: var(--gold-dark); color: var(--inverse); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.link-btn { color: var(--gold); font-weight: 600; font-size: .9rem; text-decoration: underline; }

/* ---- HERO ---- */
.hero {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px 60px; position: relative; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4;
  animation: gdrift 9s ease-in-out infinite;
}
.glow-1 { width: 500px; height: 350px; top: -80px; left: -120px; background: radial-gradient(ellipse, #F0B42940, transparent 70%); }
.glow-2 { width: 420px; height: 300px; bottom: -60px; right: -80px; background: radial-gradient(ellipse, #1A6E3C40, transparent 70%); animation-delay: -4.5s; }
@keyframes gdrift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-20px)} }
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: .9; letter-spacing: .03em;
  color: var(--text); margin-bottom: 20px;
}
.hero-accent { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 60ch; margin: 0 auto 32px; line-height: 1.7;
}
.hero-sub strong { color: var(--text); }
.verified-badge {
  display: inline-block; background: color-mix(in oklab, var(--green-light) 15%, var(--surface));
  color: var(--green-light); padding: 2px 10px; border-radius: var(--r-full);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
}
[data-theme="light"] .verified-badge { color: var(--green); background: color-mix(in oklab, var(--green) 12%, var(--surface)); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-counts { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-count { text-align: center; }
.count-num { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); letter-spacing: .04em; }
.count-label { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }

/* ---- SECTIONS ---- */
.section-wrap { max-width: var(--max); margin: 0 auto; padding: 72px 20px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .03em; color: var(--text); margin-bottom: 12px; }
.section-desc { font-size: .95rem; color: var(--muted); max-width: 55ch; margin: 0 auto; }

/* ---- EVENTS ---- */
.events-section { background: var(--bg); }
.event-filters { margin-bottom: 28px; }
.filter-scroll { display: flex; gap: 8px; flex-wrap: wrap; }
.etype-btn {
  padding: 7px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  transition: all var(--t); white-space: nowrap;
}
.etype-btn:hover { border-color: var(--gold); color: var(--gold); }
.etype-btn.active { background: var(--gold); color: var(--inverse); border-color: var(--gold); }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.no-events { text-align: center; padding: 48px; color: var(--muted); font-size: .95rem; }

.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all var(--t);
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.event-card-top { padding: 18px 20px 14px; flex: 1; }
.event-type-pill {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-full);
  margin-bottom: 10px;
}
.type-hackathon { background: #3b2f9820; color: #7B6FE8; }
.type-college-fair { background: #1A6E3C20; color: var(--green-light); }
[data-theme="light"] .type-college-fair { color: var(--green); }
.type-career-fair { background: #C8960C20; color: var(--gold-dark); }
[data-theme="light"] .type-career-fair { color: #7a5a00; }
.type-conference { background: #0055AA20; color: #5599FF; }
.type-symposium { background: #0055AA20; color: #5599FF; }
.type-workshop { background: #AA440020; color: #EE8844; }
.type-festival { background: #AA005520; color: #FF6699; }
.type-seminar { background: #0A4A2C20; color: var(--green-light); }
.type-gala { background: #F0B42920; color: var(--gold-dark); }
[data-theme="light"] .type-gala { color: #7a5a00; }
.type-scholarship { background: #E0505020; color: #E05050; }
.type-commencement { background: #55009920; color: #AA77EE; }

.event-date {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.event-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.event-location { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.event-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.event-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--border);
  gap: 8px;
}
.event-cost { font-size: .78rem; font-weight: 600; color: var(--faint); }
.event-cost.free { color: var(--green-light); }
[data-theme="light"] .event-cost.free { color: var(--green); }
.event-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 700; color: var(--gold);
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid var(--gold);
  transition: all var(--t); white-space: nowrap;
}
.event-link:hover { background: var(--gold); color: var(--inverse); }
.event-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 20px 14px; }
.event-tag {
  font-size: .7rem; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--surface2); color: var(--faint); border: 1px solid var(--border);
}

/* ---- SCHOOLS ---- */
.schools-section { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.schools-controls { margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.school-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 10px 18px;
  max-width: 460px; transition: border-color var(--t);
}
.school-search-bar:focus-within { border-color: var(--gold); }
.school-search-bar svg { color: var(--faint); flex-shrink: 0; }
.school-search-bar input { flex: 1; background: none; border: none; outline: none; font: inherit; font-size: .9rem; color: var(--text); }
.school-search-bar input::placeholder { color: var(--faint); }
.state-filters, .type-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.state-btn, .type-btn {
  padding: 6px 13px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .8rem; font-weight: 500; color: var(--muted);
  transition: all var(--t); white-space: nowrap;
}
.state-btn:hover, .type-btn:hover { border-color: var(--gold); color: var(--gold); }
.state-btn.active, .type-btn.active { background: var(--gold); color: var(--inverse); border-color: var(--gold); }
.schools-count { font-size: .82rem; color: var(--faint); margin-bottom: 12px; }
.schools-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.schools-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.schools-table thead tr { background: var(--surface2); border-bottom: 1px solid var(--border); }
.schools-table th {
  padding: 12px 16px; text-align: left;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.schools-table td { padding: 11px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.schools-table tr:last-child td { border-bottom: none; }
.schools-table tr:hover td { background: color-mix(in oklab, var(--gold) 5%, var(--surface)); }
.school-name-cell { font-weight: 600; }
.school-website-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; color: var(--gold);
  padding: 4px 10px; border-radius: var(--r-full);
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  transition: all var(--t);
}
.school-website-link:hover { background: var(--gold); color: var(--inverse); }
.school-type-badge {
  font-size: .7rem; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--surface2); border: 1px solid var(--border); color: var(--faint);
  white-space: nowrap;
}

/* ---- SCHOLARSHIPS ---- */
.scholarship-section { background: var(--bg); }
.scholarship-banner {
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in oklab, #F0B429 12%, var(--surface));
  border: 1px solid color-mix(in oklab, #F0B429 30%, transparent);
  border-radius: var(--r-lg); padding: 14px 20px;
  margin-bottom: 28px; font-size: .9rem;
}
.banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.scholarships-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.schcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 20px; transition: all var(--t);
}
.schcard:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.schcard-amount { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .04em; color: var(--gold); }
.schcard-name { font-weight: 700; font-size: .9rem; color: var(--text); margin: 6px 0; }
.schcard-deadline { font-size: .78rem; font-weight: 700; color: #E05050; }
.schcard-type { font-size: .78rem; color: var(--faint); margin-top: 3px; }
.schcard-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--gold); }

/* ---- FOOTER ---- */
.footer { background: var(--surface2); border-top: 1px solid var(--border); padding: 40px 20px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .05em; color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-note { font-size: .78rem; color: var(--faint); max-width: 64ch; line-height: 1.7; }

/* ---- RESPONSIVE ---- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .events-grid { grid-template-columns: 1fr; }
  .schools-table th:nth-child(4), .schools-table td:nth-child(4) { display: none; }
  .hero-h1 { font-size: clamp(3.5rem, 16vw, 5rem); }
}
