/* ==========================================================================
   FİKSTÜR & SEZON TAKVİMİ (YEŞİL ÇİM ZEMİN ÜZERİNDE BEYAZ & KOYU GRİ KARTLAR)
   Maskeli Slider / Kapsayıcı İçi Kaydırma Sistemi (AGENTS.md §4.2)
   Oynanan Maçlar: Koyu Gri / Slate Zemin
   Sıradaki & Gelecek Maçlar: Parlak Beyaz Zemin
   ========================================================================== */
.hub-tab-view.fixture-fullview {
  padding: 0;
}

.fixture-fullview {
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  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 24px 20px 24px;
  position: relative;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

#gameViewport.fixture-mode,
#gameWindowViewport.fixture-mode {
  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
    ) !important;
  background-size: cover !important;
  background-attachment: local !important;
}

.fixture-page-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Fixture Slider & Masked Viewport (Kaydırma Sadece Bu Mask İçinde Olur) */
.fixture-slider-container {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fixture-slider-mask {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 8px 10px 24px 6px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 16px, black calc(100% - 24px), transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.5) rgba(15, 23, 42, 0.4);
}

.fixture-slider-mask::-webkit-scrollbar {
  width: 6px;
}
.fixture-slider-mask::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}
.fixture-slider-mask::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.5);
  border-radius: 4px;
}
.fixture-slider-mask::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Top Sticky Header Banner */
.fixture-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.fixture-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fixture-league-crest {
  font-size: 36px;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.5));
}
.fixture-league-title {
  font-size: 19px;
  font-weight: 900;
  color: #f8fafc;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.8px;
}
.fixture-league-subtitle {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Standings KPI Mini Pill */
.fixture-kpi-pill {
  display: flex;
  align-items: center;
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  gap: 12px;
}
.kpi-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kpi-seg-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}
.kpi-seg-val {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  color: #f8fafc;
  font-family: 'Rajdhani', sans-serif;
}
.kpi-seg-val.gold { color: #facc15; }
.kpi-seg-val.green { color: #34d399; }
.kpi-seg-div {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* Filter Tabs */
.fixture-filter-tabs {
  display: flex;
  gap: 8px;
  background: rgba(2, 6, 23, 0.7);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fixture-filter-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fixture-filter-btn:hover {
  color: #ffffff;
}
.fixture-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
}

/* Fixture Cards Grid */
.fixture-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Large White Match Card */
.fixture-match-card {
  background: #f1f5f9;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  padding: 16px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
}
.fixture-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  border-color: #94a3b8;
}

.fixture-match-card.is-next-match {
  border: 2px solid #10b981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
}

.fmc-summary-btn {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  letter-spacing: 0.3px;
}
.fmc-summary-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}


  background: #0369a1;
  border-color: #7dd3fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.6);
}

/* Past Match: Dark Slate / Koyu Gri Zemin (AGENTS.md §11.3) */
.fixture-match-card.is-played-match {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.92;
}
.fixture-match-card.is-played-match .fmc-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.fixture-match-card.is-played-match .fmc-round-num {
  background: #1e293b;
  color: #94a3b8;
}
.fixture-match-card.is-played-match .fmc-comp-name {
  color: #38bdf8;
}
.fixture-match-card.is-played-match .fmc-date-wrap {
  color: #94a3b8;
}
.fixture-match-card.is-played-match .fmc-stadium-tag {
  background: #1e293b;
  color: #94a3b8;
}
.fixture-match-card.is-played-match .fmc-team-name {
  color: #f8fafc;
}
.fixture-match-card.is-played-match .fmc-team.is-user-team .fmc-team-name {
  color: #38bdf8;
}
.fixture-match-card.is-played-match .fmc-team-badge {
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.fixture-match-card.is-played-match .fmc-team.is-user-team .fmc-team-badge {
  background: #0c4a6e;
  border-color: #0284c7;
}
.fixture-match-card.is-played-match .fmc-score {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.fixture-match-card.is-played-match .fmc-score-val {
  color: #f8fafc;
}
.fixture-match-card.is-played-match .fmc-score-divider {
  color: #64748b;
}
.fixture-match-card.is-played-match:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* Card Header */
.fmc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 10px;
}

.fmc-round-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fmc-round-num {
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
}
.fmc-comp-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0284c7;
}
.fmc-round-badge.cup .fmc-comp-name { color: #d97706; }
.fmc-round-badge.derby .fmc-comp-name { color: #dc2626; }
.fmc-round-badge.champions_league .fmc-comp-name { color: #4f46e5; }
.fmc-round-badge.federation .fmc-comp-name { color: #7c3aed; }

.fmc-date-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}
.fmc-stadium-tag {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #475569;
}

/* Matchup Row: Home - Score/VS - Away */
.fmc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fmc-team {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.fmc-team.fmc-home {
  justify-content: flex-start;
  text-align: left;
}
.fmc-team.fmc-away {
  justify-content: flex-end;
  text-align: right;
}

.fmc-team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fmc-team-name {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Inter', sans-serif;
}
.fmc-team.is-user-team .fmc-team-name {
  color: #0284c7;
}

.fmc-team-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.fmc-team.is-user-team .fmc-team-badge {
  background: #e0f2fe;
  border-color: #38bdf8;
}

/* Center Box */
.fmc-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 140px;
}

.fmc-score {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  padding: 4px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.fmc-score-val {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
}
.fmc-score-divider {
  font-size: 18px;
  font-weight: 900;
  color: #64748b;
}

.fmc-result-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fmc-result-badge.win {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.fmc-vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.fmc-vs-badge {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}
.fmc-next-pulse {
  font-size: 11px;
  font-weight: 900;
  color: #10b981;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #6ee7b7;
}
.fmc-upcoming-badge {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.fmc-result-badge.draw {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.fmc-result-badge.loss {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.fmc-time-tag {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
}

.fixture-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
}
.fixture-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.fixture-empty-state p {
  font-size: 16px;
  margin: 0 auto;
  max-width: 520px;
}

/* "Maça Çık" on today's open match */



/* Tıklanabilir Oynanmış Fikstür Kartı */
.fixture-match-card.clickable-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fixture-match-card.clickable-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15);
}

/* 4. Panel: Fikstür İçi Takvim Konteyneri (Arkaplan hariç Menü takvim panelinin birebir aynısı) */
.fixture-calendar-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 4px 6px 24px 6px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 20px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 20px), transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 197, 94, 0.5) rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
}

.fixture-calendar-container::-webkit-scrollbar {
  width: 6px;
}
.fixture-calendar-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}
.fixture-calendar-container::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.5);
  border-radius: 4px;
}
.fixture-calendar-container::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

.fixture-calendar-container .calendar-page-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  gap: 14px;
}

