/* ==========================================================================
   LİG PANELİ (SÜPER LİG: 1-PUAN DURUMU, 2-FİKSTÜR, 3-İSTATİSTİK)
   BEYAZ, LACİVERT VE KOYU GRİ RENK PALETİ
   ========================================================================== */
.league-fullview {
  width: 100%;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: 100%;
  height: auto;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(34, 197, 94, 0.35) 0%, rgba(4, 30, 15, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #166534 0px,
      #166534 50px,
      #14532d 50px,
      #14532d 100px
    );
  background-size: 100% 100%;
  padding: 16px 20px 80px 20px;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
}

.league-page-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Header & Sub-Nav Bar (Navy, White, Dark Grey) */
.league-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(15, 23, 42, 0.96); /* Koyu Lacivert/Gri Zemin */
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.league-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.league-trophy-badge {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
}
.league-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff; /* Beyaz */
  letter-spacing: 0.8px;
  line-height: 1.1;
}
.league-subtitle {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

/* 3 Sub-Nav Tabs ("1. Lig", "2. Lig Fikstürü", "3. İstatistik") */
.league-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 6, 23, 0.7); /* Derin Lacivert */
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.league-subtab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.league-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.league-subtab-btn.active {
  color: #ffffff; /* Beyaz Yazı */
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); /* Lacivert Buton */
  border: 1px solid #3b82f6;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.6);
}

.league-status-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
}
.lsp-label {
  font-size: 10px;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.5px;
}
.lsp-val {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
}

/* SUBVIEW 1: STANDINGS TABLE */
.league-table-card {
  background: #ffffff; /* Beyaz Kart */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #cbd5e1;
}

.league-table-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0f172a; /* Koyu Lacivert Üst Çubuk */
  border-bottom: 2px solid #1e3a8a;
  color: #ffffff;
}
.lth-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.lth-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-item.ucl .legend-dot { background: #2563eb; }
.legend-item.uel .legend-dot { background: #f97316; }
.legend-item.uecl .legend-dot { background: #10b981; }
.legend-item.rel .legend-dot { background: #ef4444; }

.league-table-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
}

.league-standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #ffffff;
  color: #0f172a;
}
.league-standings-table th {
  background: #1e293b; /* Koyu Gri / Lacivert Başlık */
  color: #f8fafc;
  padding: 10px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.league-standings-table th.col-team {
  text-align: left;
  padding-left: 16px;
}

.league-standings-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b; /* Koyu Gri */
}

.league-standings-table tr:nth-child(even) td {
  background: #f8fafc;
}

.league-standings-table tr:hover td {
  background: #f1f5f9;
}

/* ÇAKİ FK (Kullanıcı Takımı) - Özel Lacivert & Beyaz Vurgulu */
.league-standings-table tr.user-team-row td {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  font-weight: 900 !important;
  border-top: 1.5px solid #3b82f6;
  border-bottom: 1.5px solid #3b82f6;
}
.league-standings-table tr.user-team-row .col-team-name {
  color: #1d4ed8 !important;
  font-weight: 900 !important;
}

/* Sıra & Gösterge Çizgileri */
.league-standings-table td.col-rank {
  font-weight: 900;
  position: relative;
  width: 45px;
}
.league-standings-table tr.zone-ucl td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #2563eb; /* Şampiyonlar Kupası */
}
.league-standings-table tr.zone-uel td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #f97316; /* Avrupa Kupası */
}
.league-standings-table tr.zone-uecl td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #10b981; /* Konferans Kupası */
}
.league-standings-table tr.zone-rel td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ef4444; /* Düşme Hattı */
}

.col-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding-left: 10px;
}
.col-team-badge {
  font-size: 18px;
  flex-shrink: 0;
}
.col-team-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}
.col-pts {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
}
.col-form {
  width: 130px;
}
.form-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.form-pill {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.form-pill.w { background: #16a34a; }
.form-pill.d { background: #eab308; }
.form-pill.l { background: #ef4444; }

/* SUBVIEW 2: LEAGUE FIXTURE (Haftalık Fikstür - Alt Alta Liste Formatı) */
.league-fixture-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.league-week-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a; /* Lacivert */
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.week-nav-btn {
  background: #1e293b; /* Koyu Gri */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.week-nav-btn:hover {
  background: #1e3a8a;
  border-color: #3b82f6;
}
.week-select-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ws-week-num {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}
.ws-week-date {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.league-week-matches-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.league-match-row {
  background: #ffffff; /* Beyaz Zemin */
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.league-match-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.league-match-row.user-match {
  border: 2px solid #1e3a8a;
  background: linear-gradient(90deg, #e2e8f0 0%, #dbeafe 100%);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.25);
}

.lmr-left-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 140px;
  flex-shrink: 0;
}
.lmr-date {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.lmr-status-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  text-transform: uppercase;
}
.lmr-status-badge.finished {
  background: #dcfce7;
  color: #15803d;
}
.lmr-status-badge.upcoming {
  background: #e0f2fe;
  color: #0369a1;
}

.lmr-teams-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}
.lmr-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.lmr-team.home {
  justify-content: flex-end;
}
.lmr-team.away {
  justify-content: flex-start;
}
.lmr-team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
}
.lmr-team.is-user .lmr-team-name {
  color: #1d4ed8;
  font-weight: 900;
}
.lmr-badge {
  font-size: 20px;
  flex-shrink: 0;
}

.lmr-score-box {
  background: #0f172a; /* Lacivert / Koyu Kutu */
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  min-width: 65px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lmr-right-actions {
  width: 100px;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.lmr-play-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  transition: all 0.15s ease;
}
.lmr-play-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* SUBVIEW 3: STATS GRID (Gol Krallığı, Asist vb.) */
.league-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.league-stat-card {
  background: #ffffff; /* Beyaz Kart */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #cbd5e1;
}
.lsc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #0f172a; /* Lacivert Başlık */
  border-bottom: 2px solid #1e3a8a;
  color: #ffffff;
}
.lsc-icon { font-size: 20px; }
.league-stat-card .lsc-title,
.lsc-header .lsc-title,
.lsc-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.lsc-list {
  display: flex;
  flex-direction: column;
}
.lsc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}
.lsc-item:last-child {
  border-bottom: none;
}
.lsc-item:nth-child(even) {
  background: #f8fafc;
}
.lsc-item:hover {
  background: #f1f5f9;
}
.lsc-item.user-player {
  background: #eff6ff !important;
  border-left: 4px solid #1e40af;
}
.lsc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lsc-rank {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #64748b;
  width: 20px;
  text-align: center;
}
.lsc-player-info {
  display: flex;
  flex-direction: column;
}
.lsc-player-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}
.lsc-player-team {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Siyah Şık Yuvarlak Badge - İçinde Sadece Rakam */
.lsc-circle-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #090e17; /* Siyah */
  border: 1.5px solid #1e293b;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.lsc-item.user-player .lsc-circle-badge {
  background: #090e17;
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Sarı Yuvarlak İçine Siyah Yazılı Badge */
.lsc-circle-badge.yellow-card {
  background: #eab308 !important; /* Sarı */
  border: 1.5px solid #ca8a04 !important;
  color: #000000 !important; /* Siyah Yazı */
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.45) !important;
}

/* Kırmızı Yuvarlak İçine Siyah Yazılı Badge */
.lsc-circle-badge.red-card {
  background: #ef4444 !important; /* Kırmızı */
  border: 1.5px solid #dc2626 !important;
  color: #000000 !important; /* Siyah Yazı */
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.45) !important;
}

/* Empty / loading state of the server-driven league screen */
.league-empty-state {
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  color: #64748b;
}

/* Oynanmış Maç Tıklanabilirlik ve Özet Butonu */
.league-match-row.clickable-match {
  cursor: pointer;
  transition: all 0.15s ease;
}

.league-match-row.clickable-match:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.league-match-row.clickable-match.user-match:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.btn-league-match-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.3);
}

.btn-league-match-summary:hover {
  background: #0369a1;
  transform: scale(1.04);
}

