/* =========================
   DESIGN TOKENS
========================= */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede7;

  --text: #1f1e1a;
  --muted: #66645e;

  --border: #d9d5cd;

  --accent: #0f6a6f;
  --accent-dark: #0a4f53;
  --accent-soft: #dbe9e8;

  --heading: #0f6a6f;

  --shadow: 0 10px 30px rgba(31,30,26,0.08);

  --max: 1120px;
}

[data-theme="dark"] {
  --bg: #002D5D;
  --surface: #0b3a71;
  --surface-2: #123f76;

  --text: #f4f7fb;
  --muted: #c5d4e6;

  --border: #2b5588;

  --accent: #63a7ae;
  --accent-dark: #9fd2d7;
  --accent-soft: #12385f;

  --heading: #52C9E8;

  --shadow: 0 14px 36px rgba(0,0,0,0.28);
}

/* =========================
   BASE
========================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 1rem;
  min-height: 64px;

  border-radius: 18px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

[data-theme="light"] .nav {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  color: var(--heading);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--heading);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =========================
   THEME BUTTON
========================= */

.theme-toggle {
  width: 36px;
  height: 36px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

[data-theme="light"] .theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}

[data-theme="dark"] .theme-toggle svg {
  transform: rotate(180deg);
}

/* =========================
   HERO (FIXED SIZE)
========================= */

.hero {
  padding: 1rem 0;
}

.hero-panel {
  border-radius: 28px;
  padding: 1rem;

  display: flex;
  justify-content: center;

  background: var(--surface);
  border: 1px solid var(--border);

  box-shadow: var(--shadow);
}

.hero-logo {
  width: 100%;
  max-width: 260px; /* FIXED — prevents giant scaling */
}

/* =========================
   CURRENT EVENT (UPGRADED)
========================= */

.current-event-card {
  position: relative;
  overflow: hidden;

  border-radius: 24px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;

  background: linear-gradient(
    145deg,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.45)
  );

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.05) inset;

  color: white;
}

/* subtle accent glow line */
.current-event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;

  background: linear-gradient(
    120deg,
    rgba(99,167,174,0.4),
    rgba(82,201,232,0.15),
    transparent
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.current-event-card > * {
  position: relative;
  z-index: 1;
}
pointer-events: none;

[data-theme="light"] .current-event-card {
  background: linear-gradient(
    145deg,
    #ffffff,
    #f1efe9
  );

  color: var(--text);
  border: 1px solid var(--border);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.current-event-title {
  font-size:2.0rem;
  font-weight: 800;
}

.current-event-meta {
  margin-top: 1.0rem;
  font-size:1.5rem;
  opacity: 0.85;
}

.current-event-time {
  font-size: 1.25rem;
  opacity: 0.75;
}

.current-event-cta {
  display: inline-block;
  margin-top: 1rem;
margin-bottom:1.25rem;

  padding: 0.5rem 0.9rem;
  border-radius: 999px;

  font-size: 1.5rem;
  font-weight: 600;

  background: rgba(255,255,255,0.1);
  color: white;

  border: 1px solid rgba(255,255,255,0.2);

  transition: all 0.15s ease;
}

.current-event-cta:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

[data-theme="light"] .current-event-cta {
  background: var(--surface-2);
  color: var(--text);
}

/* =========================
   SPONSORS (CURRENT EVENT)
========================= */

.current-event-sponsors {
  margin-top: 2rem;

  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.current-event-sponsor-label {
  width: 100%;
  font-size: 1.5rem;
text-align: center; 
  opacity: 1.00;
  margin-bottom: 0.4rem;
}
/* pill style (matches CTA but lighter) */
.sponsor-pill {
  display: inline-block;

  padding: 0.35rem 0.7rem;
  border-radius: 999px;

  font-size: 1.0rem;
  font-weight: 600;

  text-decoration: none;

  background: rgba(255,255,255,0.1);
  color: white;

  border: 1px solid rgba(255,255,255,0.2);

  transition: all 0.15s ease;
}

.sponsor-pill:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* light mode adjustment */
[data-theme="light"] .sponsor-pill {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

[data-theme="light"] .sponsor-pill:hover {
  background: var(--surface);
}
/* =========================
   RECAP CARDS
========================= */

.recap-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.recap-card {
  position: relative;
  overflow: hidden;

  border-radius: 18px;
  padding: 1.25rem;

  color: white;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  min-height: 160px;

  background-size: cover;
  background-position: center;

  box-shadow: var(--shadow);
}

.recap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.25));
}

.recap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
}

/* accent rotation */
.accent-0::before { background: #3b82f6; }
.accent-1::before { background: #22c55e; }
.accent-2::before { background: #f59e0b; }
.accent-3::before { background: #8b5cf6; }
.accent-4::before { background: #ef4444; }
.accent-5::before { background: #14b8a6; }

.recap-card > * {
  position: relative;
  z-index: 1;
}

.recap-year {
  font-size: 1.5rem;
  font-weight: 800;
}

.recap-title {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* REMOVE BADGE COMPLETELY */
.recap-badge {
  display: none;
}

/* =========================
   FACTS
========================= */

.facts-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.fact {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.fact-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
}

.fact-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================
   LINKS
========================= */

.link-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.9rem 1rem;

  border-radius: 14px;

  border: 1px solid var(--border);
  background: var(--surface-2);

  font-weight: 600;
  color: var(--text);
}

.link-card::after {
  content: "→";
  opacity: 0.6;
}
/* =========================
   CONTENT PAGE (CODE OF CONDUCT, ETC)
========================= */

.content-page {
  max-width: 720px;
  margin: 2rem auto 3rem;
  line-height: 1.65;
}

/* headings */

.content-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading);
}

.content-page h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--heading);
}

/* =========================
   ICON HEADINGS (SVG FIX)
========================= */

.icon-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-heading svg {
  width: 26px;
  height: 26px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.content-page h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* paragraphs */

.content-page p {
  margin-bottom: 1rem;
  color: var(--muted);
  max-width: 65ch;
}

/* lists */

.content-page ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.25rem;
}

.content-page li {
  margin-bottom: 0.4rem;
  color: var(--text);
}

.content-page li::marker {
  color: var(--accent);
}

/* section separation */

.content-section {
  margin-bottom: 1.75rem;
}

/* OPTIONAL: subtle card grouping */

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;

  box-shadow: var(--shadow);
}

[data-theme="dark"] .content-card {
  background: rgba(255,255,255,0.04);
}

/* small emphasis text */

.content-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* tighter intro spacing */

.content-intro {
  margin-bottom: 1.5rem;
}

/* hero spacing tweak for content pages */

.content-hero {
  margin-bottom: 1.5rem;
}
/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;

  font-size: 0.9rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 500;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--heading);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* subtle dark mode tweak */
[data-theme="dark"] .footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}