/* =========================================================
   Reset & Layout
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

/* sticky footer */
main {
  flex: 1 0 auto;
}
footer {
  margin-top: auto;
}

/* =========================================================
   Theme variables
========================================================= */
:root {
  --bg: #f7f9fc;
  --bg-soft: #eef3fb;
  --panel: rgba(0, 0, 0, 0.04);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text: #0d1117;
  --muted: #4b5563;
  --brand: #2f6df6;
  --brand-strong: #1f57e7;
  --radius: 16px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --focus: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

:root[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-soft: #11161d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #e9eef5;
  --muted: #b6c1ce;
  --brand: #6aa9ff;
  --brand-strong: #3b82f6;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Header
========================================================= */
.site-header {
  backdrop-filter: saturate(180%) blur(6px);
  background: linear-gradient(
    180deg,
    var(--panel),
    transparent 140%
  ) !important;
  border-bottom: 1px solid var(--panel-border);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain; /* was cover -> contain */
  border-radius: 12px;
  background: #fff;
  padding: 2px;
  display: block;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Card (Coming Soon box)
========================================================= */
.cs-card {
  max-width: 760px;
  width: 100%;
  background: linear-gradient(180deg, var(--panel), transparent 140%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.display-5 {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 999px; /* circle; remove if you want square */
  object-fit: cover;
  display: block;
  margin-inline: auto;
}
/* =========================================================
   Buttons
========================================================= */
.btn.btn-dark {
  background: linear-gradient(
    135deg,
    var(--brand),
    var(--brand-strong)
  ) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn.btn-dark:hover {
  filter: brightness(1.05);
}

.btn.btn-outline-dark {
  color: var(--text) !important;
  border-color: var(--panel-border) !important;
  background: transparent !important;
}
.btn.btn-outline-dark:hover {
  background: color-mix(in oklab, var(--panel) 70%, transparent) !important;
}

/* icon alignment */
.btn svg {
  display: block;
}

/* =========================================================
   Theme toggle
========================================================= */
.theme-toggle {
  position: static; /* was fixed */
  top: auto;
  right: auto; /* ignore */
  margin-left: auto; /* push to the right in the flex row */
  border: 1px solid var(--panel-border);
  background: color-mix(in oklab, var(--bg-soft) 85%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
  background: color-mix(in oklab, var(--panel) 70%, transparent);
}
.theme-toggle:active {
  transform: translateY(1px);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* =========================================================
   Text utilities
========================================================= */
.text-muted-2 {
  color: var(--muted) !important;
}

/* =========================================================
   Footer
========================================================= */
footer {
  border-top: 1px solid var(--panel-border) !important;
  background: transparent;
  text-align: center;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
/* ===== Center hero logo — circle, full image (no crop) ===== */
.logo-ring {
  display: grid;
  place-items: center;
  width: 250px; /* size of the circle */
  height: 250px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden; /* circular mask */
}

.logo-ring .brand-img {
  max-width: 78%;
  max-height: 78%;
  width: auto; /* keep aspect ratio */
  height: auto;
  object-fit: contain; /* never crop */
  display: block;
}
/* hide fallback “T” */
.fallback-logo {
  display: none !important;
}

/* Futsal photo background */
body {
  position: relative; /* creates a stacking context */
  z-index: 0;
}

/* Background image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2; /* farthest back */
  background: url("/test.avif") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  opacity: 1; /* full image; adjust if you like */
  pointer-events: none;
}

/* Glow + dark tint overlay (on top of the photo, still behind content) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* light-mode veil (disabled in dark via --light-veil:0) */ linear-gradient(
      0deg,
      rgb(255 255 255 / var(--light-veil)),
      rgb(255 255 255 / var(--light-veil))
    ),
    /* your glow layers */
      radial-gradient(
        1200px 800px at 15% 10%,
        rgba(59, 130, 246, 0.18),
        transparent 60%
      ),
    radial-gradient(
      1000px 700px at 85% 90%,
      rgba(99, 102, 241, 0.18),
      transparent 60%
    ),
    /* subtle dark bottom tint for depth */
      linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.cs-card {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
}

/* Keep header readable on any photo */
.site-header {
  background: color-mix(in oklab, var(--bg) 85%, transparent) !important;
  backdrop-filter: saturate(180%) blur(6px);
}

html[data-theme="dark"] body::before {
  /* lower brightness; tweak to taste (0.6–0.8) */
  filter: brightness(0.68) contrast(1.05) saturate(1);
}
/* Amount of light veil in light vs dark mode */
:root {
  --light-veil: 0.12;
} /* tweak: 0.08–0.15 feels nice */
:root[data-theme="dark"] {
  --light-veil: 0;
}

#footerText {
  color: white;
}

/* ===== Sponsors ===== */
.sponsor-kicker {
  font-size: 0.875rem;
}

/* Optional glass chip behind logos for readability on photos */
.sponsor-logos {
  padding: 0.5rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) - 4px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  display: inline-flex; /* shrink-wrap */
}

/* Logo sizing + polish */
.sponsor-logo {
  max-height: 44px; /* mobile baseline */
  width: auto;
  opacity: 0.9;
  filter: grayscale(10%);
  transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
.sponsor-link:hover .sponsor-logo,
.sponsor-link:focus .sponsor-logo {
  transform: translateY(-2px);
  opacity: 1;
  filter: none;
}

/* Footer sponsor pill */
.sponsor-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.sponsor-logo {
  max-height: 24px; /* 26–32px if you want bigger */
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(8%);
  transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
.sponsor-link:hover .sponsor-logo,
.sponsor-link:focus .sponsor-logo {
  transform: translateY(-1px);
  opacity: 1;
  filter: none;
}

@media (min-width: 768px) {
  .sponsor-logo {
    max-height: 28px;
    height: 28px;
  }
}

/* keep your existing footer text color override */
#footerText {
  color: white;
}
