/* ==========================================================================
   UEFA ŞAMPİYONLAR KUPASI (UCL YENİ İSVİÇRE MODELİ: 36 TAKIM TEK LİG)
   DEEP NAVY, STARLIGHT CYAN VE BEYAZ TEMALI
   ========================================================================== */
.ucl-fullview {
  width: 100%;
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: 100%;
  height: auto;
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(14, 165, 233, 0.25) 0%, rgba(2, 6, 23, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #030712 0px,
      #030712 50px,
      #0a0f1d 50px,
      #0a0f1d 100px
    );
  background-size: 100% 100%;
  padding: 16px 20px 80px 20px;
  position: relative;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.9);
  transition: background 0.3s ease;
}

/* 1. THEME: UCL (Champions League - Deep Blue / Cyan) */
.ucl-fullview.theme-ucl,
#gameViewport.ucl-mode.theme-ucl,
#gameWindowViewport.ucl-mode.theme-ucl {
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(14, 165, 233, 0.3) 0%, rgba(2, 6, 23, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #030712 0px,
      #030712 50px,
      #0a0f1d 50px,
      #0a0f1d 100px
    ) !important;
  background-size: cover !important;
}

/* 2. THEME: UEL (Europa League - Vivid Orange / Amber) */
.ucl-fullview.theme-uel,
#gameViewport.ucl-mode.theme-uel,
#gameWindowViewport.ucl-mode.theme-uel {
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(234, 88, 12, 0.38) 0%, rgba(15, 7, 2, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #110903 0px,
      #110903 50px,
      #1c0f05 50px,
      #1c0f05 100px
    ) !important;
  background-size: cover !important;
}

/* 3. THEME: UECL (Conference League - Vibrant Emerald Green) */
.ucl-fullview.theme-uecl,
#gameViewport.ucl-mode.theme-uecl,
#gameWindowViewport.ucl-mode.theme-uecl {
  background: 
    radial-gradient(ellipse at 50% 15%, rgba(34, 197, 94, 0.35) 0%, rgba(2, 20, 10, 0.98) 100%),
    repeating-linear-gradient(
      90deg,
      #03140a 0px,
      #03140a 50px,
      #062313 50px,
      #062313 100px
    ) !important;
  background-size: cover !important;
}

.ucl-page-container {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Header Bar */
.ucl-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(10, 15, 29, 0.96);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.theme-uel .ucl-top-bar {
  background: rgba(26, 12, 4, 0.96);
  border-color: rgba(249, 115, 22, 0.4);
}
.theme-uecl .ucl-top-bar {
  background: rgba(5, 25, 13, 0.96);
  border-color: rgba(34, 197, 94, 0.4);
}

/* UEFA Competition Selector Dropdown Card */
.uefa-comp-selector-container {
  position: relative;
  z-index: 50;
}

.uefa-comp-dropdown-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 250px;
  user-select: none;
}
.uefa-comp-dropdown-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.theme-uel .uefa-comp-dropdown-card {
  background: rgba(36, 17, 7, 0.9);
  border-color: rgba(249, 115, 22, 0.5);
}
.theme-uel .uefa-comp-dropdown-card:hover {
  background: rgba(54, 25, 10, 0.95);
  border-color: #f97316;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.theme-uecl .uefa-comp-dropdown-card {
  background: rgba(7, 34, 18, 0.9);
  border-color: rgba(34, 197, 94, 0.5);
}
.theme-uecl .uefa-comp-dropdown-card:hover {
  background: rgba(10, 48, 25, 0.95);
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.ucc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ucc-logo {
  font-size: 24px;
  line-height: 1;
}
.ucc-texts {
  display: flex;
  flex-direction: column;
}
.ucc-badge-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.theme-ucl .ucc-badge-tag { color: #38bdf8; }
.theme-uel .ucc-badge-tag { color: #fb923c; }
.theme-uecl .ucc-badge-tag { color: #4ade80; }

.ucc-name {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.ucc-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ucc-change-hint {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}
.ucc-arrow {
  font-size: 10px;
  color: #cbd5e1;
  transition: transform 0.2s ease;
}
.uefa-comp-selector-container.open .ucc-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.uefa-comp-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: rgba(10, 15, 29, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1000 !important;
}

.uefa-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.uefa-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.uefa-menu-item.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}
.uefa-menu-item[data-comp="uel"].active {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.45);
}
.uefa-menu-item[data-comp="uecl"].active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
}

.umi-icon {
  font-size: 22px;
}
.umi-texts {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.umi-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
  font-family: 'Rajdhani', sans-serif;
}
.umi-sub {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.umi-check {
  font-size: 14px;
  font-weight: 900;
  color: #38bdf8;
}
.uefa-menu-item[data-comp="uel"] .umi-check { color: #f97316; }
.uefa-menu-item[data-comp="uecl"] .umi-check { color: #22c55e; }

/* Sub-Nav Tabs ("Şampiyonlar Kupası", "Fikstür", "İstatistik") */
.ucl-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 6, 23, 0.85);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ucl-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;
}
.ucl-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.ucl-subtab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.6);
}

.theme-uel .ucl-subtab-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: #f97316;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.6);
}
.theme-uecl .ucl-subtab-btn.active {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #22c55e;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.6);
}

.ucl-status-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
}
.theme-uel .ucl-status-pill {
  border-color: rgba(249, 115, 22, 0.45);
}
.theme-uecl .ucl-status-pill {
  border-color: rgba(34, 197, 94, 0.45);
}

.usp-label {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}
.theme-uel .usp-label { color: #f97316; }
.theme-uecl .usp-label { color: #22c55e; }

.usp-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
}

.uefa-schedule-banner {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.uefa-schedule-banner strong { color: #f8fafc; }
.theme-uel .uefa-schedule-banner { border-color: rgba(249, 115, 22, 0.35); color: #fed7aa; }
.theme-uecl .uefa-schedule-banner { border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }

/* SUBVIEW 1: UCL STANDINGS TABLE CARD */
.ucl-table-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #cbd5e1;
}

.ucl-table-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #0f172a;
  border-bottom: 2px solid #0284c7;
  color: #ffffff;
}
.theme-uel .ucl-table-header-info {
  border-bottom-color: #ea580c;
}
.theme-uecl .ucl-table-header-info {
  border-bottom-color: #16a34a;
}
.theme-uel .ucl-nav-btn:hover {
  background: #ea580c;
  border-color: #f97316;
}
.theme-uecl .ucl-nav-btn:hover {
  background: #16a34a;
  border-color: #22c55e;
}
.theme-uel .usc-header {
  border-bottom-color: #ea580c;
}
.theme-uecl .usc-header {
  border-bottom-color: #16a34a;
}

.uth-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffffff;
}
.uth-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.legend-item.ucl-r16 .legend-dot { background: #0284c7; }
.legend-item.ucl-po .legend-dot { background: #f59e0b; }
.legend-item.ucl-elim .legend-dot { background: #ef4444; }

.ucl-table-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
}

.ucl-standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #ffffff;
  color: #0f172a;
}
.ucl-standings-table th {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ucl-standings-table th.col-team {
  text-align: left;
  padding-left: 14px;
}

.ucl-standings-table td {
  background: #ffffff;
  padding: 6px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}
.ucl-standings-table .col-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ucl-standings-table .col-team-badge {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ucl-standings-table .col-team-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.ucl-standings-table .form-pill {
  width: 16px;
  height: 16px;
  font-size: 9px;
  border-radius: 3px;
}
.ucl-standings-table tr:nth-child(even) td {
  background: #f8fafc;
}
.ucl-standings-table tr:hover td {
  background: #f1f5f9;
}

.ucl-standings-table tr.user-team-row td {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  font-weight: 900 !important;
  border-top: 1.5px solid #0284c7;
  border-bottom: 1.5px solid #0284c7;
}
.ucl-standings-table tr.user-team-row .col-team-name {
  color: #0284c7 !important;
  font-weight: 900 !important;
}

.ucl-standings-table td.col-rank {
  font-weight: 900;
  position: relative;
  width: 40px;
}
.ucl-standings-table tr.zone-r16 td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0284c7;
}
.ucl-standings-table tr.zone-po td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #f59e0b;
}
.ucl-standings-table tr.zone-elim td.col-rank::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ef4444;
}

/* UCL Stage Header Dividers */
.ucl-stage-header-row td {
  padding: 6px 14px !important;
  text-align: left !important;
}
.ush-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  line-height: 1;
}
.ush-icon {
  font-size: 13px;
}
.ush-title {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ush-desc {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.zone-r16-header td {
  background: linear-gradient(90deg, #082f49 0%, #0f172a 100%) !important;
  color: #38bdf8 !important;
  border-top: 2px solid #0284c7 !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.4) !important;
}
.zone-po-header td {
  background: linear-gradient(90deg, #451a03 0%, #0f172a 100%) !important;
  color: #fbbf24 !important;
  border-top: 2px solid #d97706 !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.4) !important;
}
.zone-elim-header td {
  background: linear-gradient(90deg, #450a0a 0%, #0f172a 100%) !important;
  color: #f87171 !important;
  border-top: 2px solid #dc2626 !important;
  border-bottom: 1px solid rgba(248, 113, 113, 0.4) !important;
}

/* SUBVIEW 2: UCL FIXTURE */
.ucl-fixture-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.ucl-week-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030712;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.ucl-nav-btn {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  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;
}
.ucl-nav-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
}

.ucl-week-matches-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* SUBVIEW 3: UCL STATS */
.ucl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.ucl-stat-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #cbd5e1;
}
.usc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #030712;
  border-bottom: 2px solid #0284c7;
  color: #ffffff;
}
.usc-icon { font-size: 20px; }
.usc-title {
  font-family: 'Chakra Petch', 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.usc-list {
  display: flex;
  flex-direction: column;
}


/* Oynanmış Maç Tıklanabilirlik ve Özet Butonu */
.ucl-week-matches-grid .league-match-row.clickable-match {
  cursor: pointer;
  transition: all 0.15s ease;
}

.ucl-week-matches-grid .league-match-row.clickable-match:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ucl-week-matches-grid .league-match-row.clickable-match.user-match:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.ucl-week-matches-grid .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);
}

.ucl-week-matches-grid .btn-league-match-summary:hover {
  background: #0369a1;
  transform: scale(1.04);
}
