/* ==========================================
   Amateurfußball 2026/27 – Page Styles
   Scoped with .af- prefix
   ========================================== */

/* ── Hero ── */
.af-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.af-hero-inner {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}
.af-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-gold);
}
.af-title {
  font-family: var(--fs-head, 'Oswald', system-ui, sans-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  margin: 16px 0 14px;
  letter-spacing: 0.02em;
}
.af-desc {
  max-width: 68ch;
  margin: 0 auto 24px;
  color: var(--fs-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.af-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.af-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 18px;
  min-width: 115px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
}
.af-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fs-gold);
}
.af-stat span {
  font-size: 0.74rem;
  color: var(--fs-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Tab Bar ── */
.af-tab-bar-wrap {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}
.af-tab-bar {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px;
  overflow-x: auto;
}
.af-tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--fs-soft);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-align: center;
  min-width: 0;
}
.af-tab:hover {
  background: rgba(255,255,255,0.06);
  color: var(--fs-text);
}
.af-tab--active {
  background: rgba(245,158,11,0.15);
  color: var(--fs-gold);
  box-shadow: 0 4px 12px rgba(245,158,11,0.12);
}

/* ── Content Sections ── */
.af-section {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 20px;
}
.af-section--compact {
  padding: 28px 0;
}
.af-section-head {
  margin-bottom: 20px;
}
.af-eyebrow {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-gold);
  margin-bottom: 8px;
}
.af-section-head h2 {
  font-family: var(--fs-head, 'Oswald', system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.af-compact-info {
  color: var(--fs-soft);
  font-size: 0.88rem;
  margin-top: 6px;
}
.af-muted {
  color: var(--fs-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Opener Card ── */
.af-opener-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}
.af-opener-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.af-opener-round {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fs-gold);
  background: rgba(245,158,11,0.1);
  padding: 4px 12px;
  border-radius: 999px;
}
.af-opener-date {
  font-size: 0.82rem;
  color: var(--fs-soft);
  font-weight: 600;
}
.af-opener-teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.af-opener-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}
.af-opener-logo { width: 48px; height: 48px; object-fit: contain; }
.af-opener-team-name { font-weight: 800; font-size: 1.05rem; }
.af-opener-vs { font-size: 1.1rem; font-weight: 700; color: var(--fs-soft); }
.af-opener-venue { margin-top: 14px; color: var(--fs-soft); font-size: 0.82rem; }

/* ── Fixture Grid ── */
.af-fixture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.af-fixture-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

/* Fixture Card */
.af-fcard {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.12s ease;
}
.af-fcard:hover { transform: translateY(-2px); }
.af-fcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 6px;
}
.af-fcard-round { font-size: 0.72rem; font-weight: 700; color: var(--fs-gold); }
.af-fcard-date { font-size: 0.72rem; color: var(--fs-soft); }
.af-fcard-body { display: flex; align-items: center; gap: 8px; }
.af-fcard-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.af-fcard-team--away { flex-direction: row-reverse; text-align: right; }
.af-fcard-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.af-fcard-team-name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-fcard-score {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--fs-gold);
  flex-shrink: 0;
  min-width: 32px;
  text-align: center;
}
.af-fcard-venue { margin-top: 8px; font-size: 0.75rem; color: var(--fs-soft); }
.af-section--pending {
  border-left: 3px solid var(--fs-soft);
  padding-left: 16px;
  margin: 4px 0 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 14px 16px;
}
.af-fcard-status {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fs-soft);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Filters ── */
.af-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.af-filters select {
  padding: 9px 32px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--fs-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 130px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='%238da0bf'%3E%3Cpath d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.af-filters select:focus { outline: none; border-color: var(--fs-gold); }
.af-fixture-count {
  font-size: 0.8rem;
  color: var(--fs-soft);
  margin-left: auto;
  white-space: nowrap;
}
.af-load-more {
  display: block;
  margin: 16px auto 0;
  padding: 11px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--fs-text);
  font-weight: 800;
  font-size: 0.87rem;
  cursor: pointer;
  transition: background 0.12s ease;
}
.af-load-more:hover { background: rgba(255,255,255,0.1); }

/* ── Table ── */
.af-table-wrap {
  overflow-x: auto;
}
.af-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}
.af-table th {
  text-align: left;
  padding: 9px 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fs-soft);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  font-weight: 800;
}
.af-table td {
  padding: 9px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.af-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.af-td-rank { font-weight: 800; color: var(--fs-gold); width: 28px; }
.af-td-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.af-td-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.af-td-diff { font-weight: 700; }
.af-td-pts { font-weight: 900; color: var(--fs-gold); }
.af-standings-empty {
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}
.af-standings-empty p { color: var(--fs-soft); font-size: 0.92rem; line-height: 1.55; }

/* ── Team Grid ── */
.af-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.af-team-grid--alpha { gap: 8px; }
.af-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  transition: transform 0.12s ease;
}
.af-team-card:hover { transform: translateY(-2px); }
.af-team-card--mini {
  flex-direction: row;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
}
.af-team-card--mini .af-team-card-logo { width: 28px; height: 28px; }
.af-team-card--mini .af-team-card-name { font-size: 0.82rem; }
.af-team-card-logo { width: 52px; height: 52px; object-fit: contain; }
.af-team-card-name { font-weight: 800; font-size: 0.92rem; line-height: 1.2; }
.af-team-card-detail { font-size: 0.78rem; color: var(--fs-soft); line-height: 1.3; }

/* ── Editorial ── */
.af-editorial {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
}
.af-editorial p {
  color: var(--fs-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  max-width: 72ch;
}
.af-data-ts {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--fs-soft);
  opacity: 0.7;
}

/* ── Footer ── */
.af-footer-note {
  max-width: 560px;
  margin: 0 auto 18px;
  text-align: center;
}
.af-footer-note p { font-size: 0.8rem; color: var(--fs-soft); line-height: 1.5; }
.af-footer-ts { margin-top: 4px; font-size: 0.76rem; color: var(--fs-soft); opacity: 0.7; }
.af-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--fs-soft);
}
.af-footer-links a { color: var(--fs-text); font-weight: 700; }
.af-footer-links a:hover { color: var(--fs-gold); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .af-hero { padding: 32px 0 24px; }
  .af-section { padding: 28px 0 16px; }
  .af-stats { flex-direction: column; align-items: stretch; }
  .af-stat {
    flex-direction: row;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 14px;
  }
  .af-tab-bar { border-radius: 16px; padding: 4px; }
  .af-tab { padding: 10px 12px; font-size: 0.82rem; }
  .af-fixture-grid { grid-template-columns: 1fr; }
  .af-team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .af-filters { flex-direction: column; align-items: stretch; }
  .af-filters select { width: 100%; }
  .af-fixture-count { margin-left: 0; text-align: center; }
  .af-opener-card { padding: 18px; }
  .af-table { font-size: 0.76rem; }
  .af-table th, .af-table td { padding: 7px 4px; }
}
