/* 
 * seasonPass.css
 * Valorant Tarzı AAA Sezon Bileti Tasarımı
 */

.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--t-bg-app, #0f1923); /* Valorant dark mode base */
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  color: #ece8e1;
}
.sp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Üst Header */
.sp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 50px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
  flex-shrink: 0;
}
.sp-header-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sp-header-title span {
  font-size: 16px;
  font-weight: 600;
  color: #facc15; /* Premium altın rengi vurgu */
  letter-spacing: 1px;
  padding-left: 20px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
.sp-close-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 8px; /* Valorant tarzı keskin köşeler */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sp-close-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

/* Ana İçerik */
.sp-content-area {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0 0 40px 0;
}

/* Sol Panel (Özet ve Geçerli XP) */
.sp-sidebar {
  width: 400px;
  flex-shrink: 0;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
}
.sp-sidebar::-webkit-scrollbar { display: none; }

/* Güncel İlerleme (Micro-progress) */
.sp-current-progress-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
}
.sp-current-tier-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--t-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.sp-current-tier-value {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}
.sp-xp-bar-container {
  height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.sp-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #facc15, #fef08a);
  border-radius: 6px;
  transition: width 0.5s ease;
}
.sp-xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Premium Banner */
.sp-premium-banner {
  background: rgba(250,204,21,0.05);
  border: 1px solid rgba(250,204,21,0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.sp-premium-title {
  font-size: 18px;
  font-weight: 900;
  color: #facc15;
  margin: 0;
  letter-spacing: 0.5px;
}
.sp-premium-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}
.sp-premium-btn {
  background: #facc15;
  color: #1e1b4b;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.sp-premium-btn:hover {
  background: #fef08a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(250,204,21,0.3);
}

/* Sağ Panel: Valorant Tarzı Track */
.sp-track-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Track Scroll Alanı */
.sp-track-scroll-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 50px 40px 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  will-change: transform;
}
.sp-track-scroll-area::-webkit-scrollbar { height: 10px; }
.sp-track-scroll-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 5px; }
.sp-track-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 5px; }

/* Tier Sütunu */
.sp-tier-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  width: 180px;
  flex-shrink: 0;
}

/* Chapter End (Bölüm Sonu) Özel Sütunları - Valorant tarzı geniş ve epik */
.sp-tier-column.is-epic {
  width: 240px;
}

/* Ücretsiz Ödül Alanı */
.sp-reward-free-zone {
  height: 160px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Alt tarafa yasla ki premium'a yakın dursun */
}

/* Ortadaki İlerleme Rayı (Highway) */
.sp-highway-container {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sp-highway-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
  z-index: 0;
}
.sp-highway-line-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: #facc15;
  transform: translateY(-50%);
  z-index: 1;
  box-shadow: 0 0 10px rgba(250,204,21,0.5);
}
.sp-tier-node {
  position: relative;
  z-index: 2;
  background: #1e293b;
  border: 2px solid rgba(255,255,255,0.2);
  color: #94a3b8;
  width: 44px;
  height: 44px;
  border-radius: 8px; /* Riot tarzı kare-yuvarlak */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  transition: all 0.3s;
}
.sp-tier-column.unlocked .sp-tier-node {
  background: #facc15;
  border-color: #fef08a;
  color: #1e1b4b;
  box-shadow: 0 0 15px rgba(250,204,21,0.4);
}

/* Premium Ödül Alanı */
.sp-reward-premium-zone {
  height: 240px;
  width: 100%;
}
.sp-tier-column.is-epic .sp-reward-premium-zone {
  height: 300px; /* Epic kartlar daha uzun */
}

/* Ödül Kartı (Ortak) */
.sp-reward-card {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
  overflow: hidden;
}
.sp-reward-card.empty {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.1);
  opacity: 0.3;
}
.sp-reward-card:not(.empty):hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
}

/* Kilitli Durumlar (Silik & Opacity) */
.sp-tier-column.locked .sp-reward-card:not(.empty) {
  opacity: 0.4;
}
.sp-tier-column.unlocked .sp-reward-card.premium-locked {
  /* Seviye açık ama premium bilet yok */
  opacity: 0.5;
}

/* Kilit İkonu */
.sp-lock-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.sp-reward-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-tier-column.is-epic .sp-reward-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
}

.sp-reward-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.sp-tier-column.is-epic .sp-reward-title {
  font-size: 16px;
  color: #facc15;
}

.sp-reward-type {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1px;
}

/* Mobil Uyumluluk */
@media (max-width: 900px) {
  .sp-content-area {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sp-sidebar {
    width: 100%;
    padding: 20px;
    height: auto;
  }
  .sp-header-bar {
    padding: 20px;
  }
  .sp-track-scroll-area {
    padding: 20px;
  }
}
