/* ═══════════════════════════════════════════════════
   Amatör Futbol Eklentisi - Frontend CSS
   ═══════════════════════════════════════════════════ */

:root {
  --af-primary:    #1a5276;
  --af-secondary:  #e74c3c;
  --af-accent:     #f39c12;
  --af-bg:         #f8f9fa;
  --af-border:     #dee2e6;
  --af-text:       #212529;
  --af-muted:      #6c757d;
  --af-win:        #27ae60;
  --af-draw:       #f39c12;
  --af-loss:       #e74c3c;
  --af-radius:     6px;
  --af-shadow:     0 2px 8px rgba(0,0,0,.08);
}

/* ─── Ortak ─────────────────────────────────────── */
.af-empty { color: var(--af-muted); font-style: italic; padding: 1rem 0; }

.af-club-logo-sm {
  width: 24px; height: 24px;
  object-fit: contain; vertical-align: middle;
  margin-right: 4px;
}

/* ─── Puan Durumu ───────────────────────────────── */
.af-standing-wrap { overflow-x: auto; }

.af-standing-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; background: #fff;
  box-shadow: var(--af-shadow);
  border-radius: var(--af-radius);
  overflow: hidden;
}

.af-standing-table thead tr {
  background: var(--af-primary); color: #fff;
}
.af-standing-table thead th {
  padding: 10px 8px; text-align: center;
  font-weight: 600; white-space: nowrap;
  font-size: .8rem; text-transform: uppercase;
}
.af-standing-table .af-col-team { text-align: left; min-width: 160px; }

.af-standing-table tbody tr {
  border-bottom: 1px solid var(--af-border);
  transition: background .15s;
}
.af-standing-table tbody tr:hover { background: var(--af-bg); }
.af-row-highlight { background: #fff8e1 !important; }

.af-standing-table td {
  padding: 8px; text-align: center;
}
.af-col-team a { color: var(--af-text); text-decoration: none; font-weight: 500; }
.af-col-team a:hover { color: var(--af-primary); }
.af-col-pts strong { color: var(--af-primary); font-size: 1rem; }

/* Form dots */
.af-form-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: #fff;
  margin: 0 1px;
}
.af-form-w { background: var(--af-win); }
.af-form-d { background: var(--af-draw); }
.af-form-l { background: var(--af-loss); }

/* ─── Maç Listesi ───────────────────────────────── */
.af-matches-wrap { display: flex; flex-direction: column; gap: 12px; }

.af-week-group {
  background: #fff; border-radius: var(--af-radius);
  box-shadow: var(--af-shadow); overflow: hidden;
}

.af-week-header {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: var(--af-primary); color: #fff;
}
.af-week-label { font-weight: 700; font-size: .9rem; }
.af-week-date  { font-size: .8rem; opacity: .85; }

.af-match-row {
  display: grid;
  grid-template-columns: 50px 1fr 90px 1fr auto;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--af-border);
  gap: 8px;
}
.af-match-row:last-child { border-bottom: none; }
.af-match-row:hover { background: var(--af-bg); }

.af-match-time  { color: var(--af-muted); font-size: .8rem; text-align: center; }
.af-match-home  { text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.af-match-away  { text-align: left;  display: flex; align-items: center; gap: 6px; }
.af-match-team-name { font-weight: 500; font-size: .9rem; }

.af-match-score {
  text-align: center; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.af-score-home, .af-score-away { font-size: 1.1rem; }
.af-score-sep { color: var(--af-muted); }
.af-score-vs  { color: var(--af-muted); font-size: .9rem; font-weight: 400; }

.af-walkover {
  font-size: .65rem; background: var(--af-secondary); color: #fff;
  padding: 1px 4px; border-radius: 3px; margin-left: 4px;
}

.af-match-stadium {
  grid-column: 1 / -1;
  font-size: .75rem; color: var(--af-muted);
  padding-top: 2px;
}

/* ─── Gol Krallığı ─────────────────────────────── */
.af-scorers-table {
  width: 100%; border-collapse: collapse;
  background: #fff; box-shadow: var(--af-shadow);
  border-radius: var(--af-radius); overflow: hidden;
}
.af-scorers-table thead tr { background: var(--af-primary); color: #fff; }
.af-scorers-table thead th { padding: 10px 8px; font-size: .8rem; text-transform: uppercase; }
.af-scorers-table tbody td { padding: 8px; border-bottom: 1px solid var(--af-border); }
.af-scorers-table tbody tr:hover { background: var(--af-bg); }
.af-player-photo-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: middle; }
.af-goals strong { color: var(--af-secondary); font-size: 1.1rem; }

/* ─── Sekme Navigasyon ──────────────────────────── */
.af-comp-tabs-nav, .af-tab-inner-nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 2px solid var(--af-border);
  margin-bottom: 16px;
}

.af-tab-btn, .af-inner-btn {
  padding: 8px 16px; border: none; background: transparent;
  cursor: pointer; font-size: .9rem; color: var(--af-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all .2s; border-radius: var(--af-radius) var(--af-radius) 0 0;
}
.af-tab-btn:hover, .af-inner-btn:hover { color: var(--af-primary); background: var(--af-bg); }
.af-tab-active, .af-inner-active {
  color: var(--af-primary) !important;
  border-bottom-color: var(--af-primary) !important;
  font-weight: 600;
}

.af-tab-panel, .af-inner-panel { display: none; }
.af-tab-panel-active, .af-inner-panel.af-inner-active { display: block; }

/* ─── Sonraki Maç Widget ────────────────────────── */
.af-widget-next-match {
  text-align: center; padding: 16px;
  background: #fff; border-radius: var(--af-radius);
  box-shadow: var(--af-shadow);
}
.af-next-date  { color: var(--af-primary); font-weight: 600; margin-bottom: 12px; }
.af-next-teams { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1rem; }
.af-team       { font-weight: 600; }
.af-vs         { color: var(--af-muted); font-size: .8rem; }
.af-next-stadium { margin-top: 8px; font-size: .8rem; color: var(--af-muted); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .af-match-row {
    grid-template-columns: 40px 1fr 70px 1fr;
  }
  .af-match-stadium { display: none; }
  .af-match-team-name { font-size: .8rem; }
  .af-standing-table .af-col-form { display: none; }
}
