/* ==========================================================================
   MMO11 — ANASAYFA SEZON ÖZETİ (SEASON SUMMARY & TOURNAMENTS TREE)
   30 Günlük Sezon Döngüsü · Dinamik Lig, Kupa, UEFA, Federasyon Verileri
   Modern, İnteraktif & Şık Tasarım
   ========================================================================== */

.season-summary-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 22px 26px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.season-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 12px;
}

.season-summary-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-summary-icon {
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.35));
}

.season-summary-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-summary-cycle-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-summary-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-badge-pill {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e293b;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.season-day-pill {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 12px;
  background: #eff6ff;
  color: #0284c7;
  border-radius: 20px;
  border: 1.5px solid #bae6fd;
}

/* Sezon İlerleme Çubuğu */
.season-progress-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.season-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.season-progress-track {
  position: relative;
  height: 7px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.season-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #10b981 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Turnuva Renk Ağacı Listesi */
.tournaments-tree-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}

.tourn-tree-node {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
}

/* Ağaç Bağlantı Çizgisi ve Noktaları */
.tourn-tree-connector {
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.tree-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 2;
  margin-top: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tree-dot.red { background: #ef4444; }
.tree-dot.blue { background: #3b82f6; }
.tree-dot.green { background: #10b981; }
.tree-dot.orange { background: #f97316; }
.tree-dot.gray { background: #94a3b8; }

.tree-line {
  width: 2.5px;
  flex: 1;
  background: #cbd5e1;
  margin-top: 3px;
  margin-bottom: -9px;
}

/* Turnuva Kart Gövdesi (Tıklanabilir) */
.tourn-card-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-radius: 10px;
  border-left: 5px solid;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease;
  position: relative;
}

.tourn-card-body:hover {
  transform: translateX(4px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.tourn-card-body:active {
  transform: translateX(2px) scale(0.99);
}

/* Renk Temaları */
/* 1. Ana Lig - Kırmızı */
.tourn-card-body.red-theme {
  background: linear-gradient(90deg, #fff5f5 0%, #ffffff 100%);
  border-color: #ef4444;
  border-right: 1.5px solid #fee2e2;
  border-top: 1.5px solid #fee2e2;
  border-bottom: 1.5px solid #fee2e2;
}
.tourn-card-body.red-theme:hover {
  background: linear-gradient(90deg, #fee2e2 0%, #ffffff 100%);
}
.tourn-type-badge.red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
.tourn-rank-badge.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35);
}

/* 2. Şampiyonlar Kupası - Mavi */
.tourn-card-body.blue-theme {
  background: linear-gradient(90deg, #f0f7ff 0%, #ffffff 100%);
  border-color: #3b82f6;
  border-right: 1.5px solid #dbeafe;
  border-top: 1.5px solid #dbeafe;
  border-bottom: 1.5px solid #dbeafe;
}
.tourn-card-body.blue-theme:hover {
  background: linear-gradient(90deg, #dbeafe 0%, #ffffff 100%);
}
.tourn-type-badge.blue {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}
.tourn-rank-badge.blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

/* 3. Kupa - Yeşil */
.tourn-card-body.green-theme {
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #10b981;
  border-right: 1.5px solid #d1fae5;
  border-top: 1.5px solid #d1fae5;
  border-bottom: 1.5px solid #d1fae5;
}
.tourn-card-body.green-theme:hover {
  background: linear-gradient(90deg, #d1fae5 0%, #ffffff 100%);
}
.tourn-type-badge.green {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}
.tourn-rank-badge.green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
}

/* 4. Federasyon - Turuncu */
.tourn-card-body.orange-theme {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
  border-color: #f97316;
  border-right: 1.5px solid #ffedd5;
  border-top: 1.5px solid #ffedd5;
  border-bottom: 1.5px solid #ffedd5;
}
.tourn-card-body.orange-theme:hover {
  background: linear-gradient(90deg, #ffedd5 0%, #ffffff 100%);
}
.tourn-type-badge.orange {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.tourn-rank-badge.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35);
}

/* 5. Nötr / Katılmadı / Pasif Tema */
.tourn-card-body.neutral-theme {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border-color: #94a3b8;
  border-right: 1.5px solid #e2e8f0;
  border-top: 1.5px solid #e2e8f0;
  border-bottom: 1.5px solid #e2e8f0;
}
.tourn-card-body.neutral-theme:hover {
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 100%);
}
.tourn-type-badge.gray {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.tourn-rank-badge.gray {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(100, 116, 139, 0.35);
}

/* 6. Federasyona Katıl / Eylem Rozeti */
.tourn-rank-badge.join {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
  position: relative;
}
/* the pulse on its own layer (opacity: no repaint each frame) */
.tourn-rank-badge.join::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.7);
  opacity: 0;
  pointer-events: none;
  animation: joinPulse 2s infinite ease-in-out;
}
@keyframes joinPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.tourn-main-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.tourn-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tourn-type-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tourn-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tourn-status-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tourn-right-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tourn-rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
}

.rank-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.rank-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.tourn-arrow-hint {
  font-size: 13px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tourn-card-body:hover .tourn-arrow-hint {
  transform: translateX(3px);
  color: #0f172a;
}

/* Alt Bilgi Şeridi (Footer) */
.season-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1.5px solid #f1f5f9;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.season-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* "📜 Ödüller" — opens the Sezon Özeti panel (seasonReport.js) */
.season-report-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.season-report-btn:hover { transform: translateY(-1px); }
.season-report-btn:active { transform: scale(0.96); }
