/* ═══════════════════════════════════════════════════════
   FUTSAL TREST — Dark Sports Hub Design System
   ═══════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in menu.php */

/* ── Tokens ────────────────────────────────────────── */
:root {
  --bg-deep:     #060a13;
  --bg-base:     #0c1220;
  --bg-surface:  #141d2f;
  --bg-card:     #1a2540;
  --bg-hover:    #223058;
  --bg-glow:     rgba(59, 130, 246, 0.08);

  --accent:      #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --gold:        #f59e0b;
  --gold-glow:   rgba(245, 158, 11, 0.25);
  --green:       #22c55e;
  --red:         #ef4444;

  --text:        #f1f5f9;
  --text-dim:    #8b9dc3;
  --text-muted:  #4a5e82;
  --border:      #1e2d4a;

  --font:        'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,158,11,0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ── Section Headers ───────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
  white-space: nowrap;
}

.section-link:hover {
  background: var(--bg-glow);
  border-color: var(--accent);
  color: #60a5fa;
}

.section-link svg { width: 14px; height: 14px; }

/* ── Navbar ────────────────────────────────────────── */
.ft-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.ft-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ft-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ft-nav__logo { height: 38px; width: auto; }

.ft-nav__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.ft-nav__title span { color: var(--accent); }

.ft-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.ft-nav__link:hover,
.ft-nav__link--active {
  color: var(--text);
  background: var(--bg-surface);
}

.ft-nav__link--active { color: var(--accent); }

.ft-nav__link--external::after {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  margin-left: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b9dc3' stroke-width='2.5'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.5;
}

/* Dropdown */
.ft-nav__dropdown { position: relative; }

.ft-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.ft-nav__dropdown:hover .ft-nav__dropdown-menu,
.ft-nav__dropdown:focus-within .ft-nav__dropdown-menu { display: block; }

.ft-nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.ft-nav__dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Mobile toggle */
.ft-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.ft-nav__toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 900px) {
  .ft-nav__toggle { display: flex; }
  .ft-nav__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    gap: 0;
  }
  .ft-nav__links--open { display: flex; }
  .ft-nav__links li { width: 100%; }
  .ft-nav__link {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .ft-nav__links li:last-child .ft-nav__link { border-bottom: none; }

  /* Disable hover on touch */
  .ft-nav__dropdown:hover .ft-nav__dropdown-menu { display: none; }
  .ft-nav__dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-surface);
    margin: 0;
    padding: 0;
    border-radius: 0;
    min-width: 0;
  }
  .ft-nav__dropdown-menu--open { display: block !important; }
  .ft-nav__dropdown-item {
    padding: 14px 40px;
    border-bottom: 1px solid var(--border);
  }
  .ft-nav__dropdown-item:last-child { border-bottom: none; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-deep) 0%, rgba(6,10,19,0.7) 40%, rgba(6,10,19,0.2) 100%),
    linear-gradient(to right, var(--bg-deep) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 0;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.hero__excerpt {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 580px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.hero__cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  color: white;
}

@media (max-width: 768px) {
  .hero { min-height: 420px; }
  .hero__content { padding: 32px 0; }
}

/* ── Cards (generic) ───────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  border-color: #2a3f6a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ── Two-Column Dashboard ──────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .dashboard { grid-template-columns: 1fr; }
}

/* ── Standings Table ───────────────────────────────── */
.standings { padding: 24px; }

.standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.standings th {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: none;
}

.standings th:last-child,
.standings td:last-child { text-align: right; }

.standings th { background: none !important; }

.standings td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(30,45,74,0.5);
  vertical-align: middle;
  font-size: 0.95rem;
}

.standings tr:last-child td { border-bottom: none; }

.standings__pos {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  width: 30px;
}

.standings__pos--gold { color: var(--gold); }

.standings__team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.standings__logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-card);
  padding: 2px;
}

.standings__pts {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

/* ── Fixtures / Next Round ─────────────────────────── */
.fixtures { padding: 24px; }

.fixtures__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixtures__date::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.fixture-row {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background var(--transition);
}

.fixture-row:hover { background: var(--bg-card); }

.fixture-row__time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  width: 50px;
  flex-shrink: 0;
}

.fixture-row__teams {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.fixture-row__vs {
  color: var(--text-muted);
  margin: 0 6px;
  font-size: 0.75rem;
}

/* ── Results Strip ─────────────────────────────────── */
.results-section { margin-bottom: 48px; }

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

.result-card {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  gap: 12px;
  transition: all var(--transition);
}

.result-card:hover { border-color: #2a3f6a; }

.result-card__team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.result-card__team--right { justify-content: flex-end; text-align: right; }

.result-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card__logo {
  width: 30px; height: 30px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg-card);
  padding: 2px;
}

.result-card__score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.result-card__score span { min-width: 16px; text-align: center; }
.result-card__divider { color: var(--text-muted); font-size: 0.8rem; }

.result-card__date {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2rem; }
}

/* ── Scorers ───────────────────────────────────────── */
.scorers-section { margin-bottom: 48px; }

.scorers-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scorers-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  text-align: left;
}

.scorers-table th:last-child { text-align: center; }

.scorers-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.scorers-table tr:last-child td { border-bottom: none; }

.scorers-table tr:hover { background: var(--bg-card); }

.scorer__rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}

.scorer__rank--top { color: var(--gold); }

.scorer__name { font-weight: 600; }

.scorer__team {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.scorer__team-logo {
  width: 22px; height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

.scorer__goals {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}

/* ── Teams Grid ────────────────────────────────────── */
.teams-section { margin-bottom: 48px; }

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.team-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  text-align: center;
}

.team-tile:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
  color: var(--text);
}

.team-tile__logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--bg-card);
  padding: 4px;
}

.team-tile__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Sponsors ──────────────────────────────────────── */
.sponsors-section {
  margin-bottom: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.sponsor-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: all var(--transition);
  border-radius: 8px;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

/* Partner cards (new design) */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.partner-card__logo {
  height: 64px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.partner-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}

/* ── Footer ────────────────────────────────────────── */
.ft-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.ft-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.ft-footer__brand-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}

.ft-footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ft-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft-footer__links li { margin-bottom: 8px; }

.ft-footer__links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.ft-footer__links a:hover { color: var(--text); }

.ft-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ft-footer__social {
  display: flex;
  gap: 12px;
}

.ft-footer__social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.ft-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-glow);
}

@media (max-width: 768px) {
  .ft-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ft-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ── Tournify Badge ────────────────────────────────── */
.tournify-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.tournify-strip a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tournify-strip__apps {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.tournify-strip__apps a {
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
}

.tournify-strip__apps a:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 600px) {
  .tournify-strip { font-size: 0.8rem; flex-wrap: wrap; text-align: center; }
  .tournify-strip__apps { width: 100%; justify-content: center; margin-left: 0; margin-top: 4px; }
}

/* ── News Cards ────────────────────────────────────── */
.news-section { margin-bottom: 48px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.news-card:hover { border-color: #2a3f6a; }

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Utility ───────────────────────────────────────── */
.mb-section { margin-bottom: 48px; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted) !important; }

/* ── Animations ────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-up 0.6s ease-out both;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }
.animate-in:nth-child(5) { animation-delay: 0.32s; }
.animate-in:nth-child(6) { animation-delay: 0.40s; }
.animate-in:nth-child(7) { animation-delay: 0.48s; }
.animate-in:nth-child(8) { animation-delay: 0.56s; }

/* ═══════════════════════════════════════════════════════
   Legacy Page Compatibility
   Podstránky (statistiky, historie, týmy...) používají
   starý HTML bez nových tříd. Tyto styly zajistí
   čitelnost na tmavém pozadí.
   ═══════════════════════════════════════════════════════ */

/* Generic containers */
.container { color: var(--text); }
section { position: relative; z-index: 1; }

/* Legacy headings */
h1, h2, h3, h4, h5, h6 { color: var(--text); }

/* Legacy tables */
table { color: var(--text); }
th {
  background: var(--bg-card) !important;
  color: var(--text-dim) !important;
  border-color: var(--border) !important;
}
td {
  border-color: var(--border) !important;
}
tr:hover { background: var(--bg-hover); }

/* Modern table from old pages */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.modern-table th {
  background: var(--bg-card) !important;
  color: var(--text-dim) !important;
  padding: 12px 16px;
  font-size: 0.85rem;
}

.modern-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border) !important;
}

/* Legacy cards */
.card {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  color: var(--text);
}

.card-header {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-dim);
}

.card-body { color: var(--text); }
.card-title { color: var(--text); }
.card-text { color: var(--text-dim); }

/* Legacy buttons */
.tlacitkomodre, .btn-1, .btn-primary, input[type="submit"] {
  background: var(--accent) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 20px !important;
  font-family: var(--font) !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all var(--transition);
}

.tlacitkomodre:hover, .btn-1:hover {
  background: #2563eb !important;
}

.tlacitkocervene {
  background: var(--red) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 20px !important;
}

/* Legacy forms */
input[type="text"], input[type="search"], input[type="email"], input[type="password"],
select, textarea {
  background: var(--bg-surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  font-family: var(--font) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}

/* Legacy bg overrides */
.bg-light { background: var(--bg-surface) !important; color: var(--text) !important; }
.bg-dark { background: var(--bg-base) !important; }
.bg-secondary { background: var(--bg-card) !important; }
.text-dark { color: var(--text) !important; }
.text-light { color: var(--text) !important; }
.text-center { text-align: center; }

/* Legacy links */
.dropdown-menu {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}

.dropdown-item {
  color: var(--text-dim) !important;
}

.dropdown-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
}

/* Old header image area */
.cela { display: none; }

/* Old page specific - timeline, filters etc */
.timeline-nav, .filter-section {
  background: var(--bg-surface);
  border-color: var(--border);
}

/* Gradient overrides for old pages */
[style*="background-color: #2F4A71"],
[style*="background-color:  #2F4A71"] {
  background: var(--bg-card) !important;
}

/* Legacy grid spacing fix */
.p-3, .p-1, .py-3 { padding: 1rem; }
