/* ==========================================================================
   INCREDIBLE INDIA EXPLORER — PRO KABADDI LEAGUE TROPHY STYLESHEET
   Issue: #2549
   ========================================================================== */

@import url("../../styles.css");

/* ── Scope ─────────────────────────────────────────────────────── */
.pkl-archive-page {
  background-color: var(--bg-dark-deep, #090d16);
  color: var(--text-light, #f8fafc);
  font-family: var(--font-body, 'Outfit', sans-serif);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.pkl-hero {
  position: relative;
  padding: 100px 20px 60px;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.18), transparent 70%),
    radial-gradient(circle at 80% 10%, rgba(255, 176, 31, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 22, 1) 100%);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  text-align: center;
}

.pkl-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #ff6b6b;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pkl-hero h1 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #ffb01f 50%, #ff9933 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pkl-hero .hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Stats grid ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 12px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s, border-color 0.25s;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 31, 0.4);
}

.stat-number {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb01f 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Sub-Navigation Bar ────────────────────────────────────────── */
.subnav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 0;
}

.subnav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.subnav-btn:hover {
  border-color: rgba(255, 176, 31, 0.5);
  color: #ffb01f;
}

.subnav-btn.active {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: #fff;
  border-color: transparent;
}

/* ── Section layout ────────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.archive-section {
  margin-bottom: 80px;
  scroll-margin-top: 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffb01f;
  margin-bottom: 8px;
}

.section-header h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 2.2rem;
  margin: 0 0 10px;
  color: #fff;
}

.section-header p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Trophy display ────────────────────────────────────────────── */
.trophy-display {
  display: flex;
  justify-content: center;
}

.trophy-card {
  background: linear-gradient(135deg, rgba(255, 176, 31, 0.1), rgba(220, 38, 38, 0.08));
  border: 1px solid rgba(255, 176, 31, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.trophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 176, 31, 0.15);
}

.trophy-emoji {
  font-size: 5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(255, 176, 31, 0.4));
}

.trophy-card h3 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.6rem;
  color: #ffb01f;
  margin: 0 0 8px;
}

.trophy-card .subtitle {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.trophy-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  font-size: 0.85rem;
}

.trophy-meta-item {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 10px;
}

.trophy-meta-item .label {
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.trophy-meta-item .value {
  color: #fff;
  font-weight: 600;
}

/* ── Timeline ──────────────────────────────────────────────────── */
.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
}

.timeline-slider-row {
  margin-bottom: 30px;
}

.timeline-label {
  display: block;
  text-align: center;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffb01f;
  margin-bottom: 12px;
}

.timeline-label span {
  color: #fff;
}

#season-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #dc2626, #f59e0b, #16a34a);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

#season-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #dc2626;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#season-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #dc2626;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.timeline-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.7rem;
  color: #94a3b8;
}

.timeline-detail {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid #ffb01f;
}

.timeline-detail .champion-name {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 6px;
}

.timeline-detail .runner-up {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.timeline-detail .stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.timeline-detail .stat-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
}

.timeline-detail .stat-block .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.timeline-detail .stat-block .value {
  font-size: 1rem;
  font-weight: 700;
  color: #ffb01f;
}

/* ── Search / filter ───────────────────────────────────────────── */
.search-filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.search-input,
.select-filter {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.search-input:focus,
.select-filter:focus {
  border-color: #ffb01f;
}

.search-input::placeholder {
  color: #64748b;
}

.select-filter option {
  background: #0f172a;
  color: #fff;
}

/* ── Teams grid ────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--team-color, #dc2626);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 31, 0.4);
}

.team-card .team-name {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 4px;
}

.team-card .team-city {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.team-card .team-meta {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.team-card .team-titles {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 176, 31, 0.12);
  color: #ffb01f;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Season table ──────────────────────────────────────────────── */
.season-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.season-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}

.season-table th,
.season-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.season-table th {
  background: rgba(255, 176, 31, 0.08);
  color: #ffb01f;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.season-table tbody tr {
  transition: background 0.15s;
}

.season-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.season-table .champion-cell {
  color: #ffb01f;
  font-weight: 700;
}

/* ── Star players grid ─────────────────────────────────────────── */
.star-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.star-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.star-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 31, 0.4);
}

.star-card .star-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.star-card .star-name {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 4px;
}

.star-card .star-nickname {
  color: #ffb01f;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 8px;
}

.star-card .star-role {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.star-card .star-team {
  color: #94a3b8;
  font-size: 0.85rem;
}

.star-card .star-points {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #ffb01f;
  font-weight: 700;
}

/* ── Venues grid ───────────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.venue-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.25s, border-color 0.25s;
}

.venue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 187, 120, 0.4);
}

.venue-card .venue-emoji {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.venue-card .venue-name {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 4px;
}

.venue-card .venue-city {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.venue-card .venue-capacity {
  font-size: 0.8rem;
  color: #48bb78;
  font-weight: 600;
  margin-bottom: 8px;
}

.venue-card .venue-hosted {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 8px;
}

.venue-card .venue-significance {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.5;
}

/* ── Records grid ──────────────────────────────────────────────── */
.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.record-card {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(255, 176, 31, 0.06));
  border: 1px solid rgba(255, 176, 31, 0.2);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.25s, border-color 0.25s;
}

.record-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 31, 0.5);
}

.record-card .record-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffb01f;
  font-weight: 700;
  margin-bottom: 6px;
}

.record-card .record-name {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.record-card .record-holder {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.record-card .record-value {
  font-size: 0.95rem;
  color: #48bb78;
  font-weight: 700;
}

/* ── Quiz ──────────────────────────────────────────────────────── */
.quiz-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(255, 176, 31, 0.5);
  background: rgba(255, 176, 31, 0.05);
}

.quiz-option.correct {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
}

.quiz-option.incorrect {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  color: #ff6b6b;
}

.quiz-option:disabled {
  cursor: default;
}

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 176, 31, 0.3);
  border-radius: 16px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-modal-btn:hover {
  background: rgba(220, 38, 38, 0.4);
}

/* ── Light theme adjustments ───────────────────────────────────── */
.pkl-archive-page.light-theme {
  background-color: #f8fafc;
  color: #1a1a2e;
}

.pkl-archive-page.light-theme .pkl-hero {
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.1), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pkl-archive-page.light-theme .pkl-hero h1,
.pkl-archive-page.light-theme .section-header h2,
.pkl-archive-page.light-theme .timeline-detail .champion-name,
.pkl-archive-page.light-theme .team-card .team-name,
.pkl-archive-page.light-theme .star-card .star-name,
.pkl-archive-page.light-theme .venue-card .venue-name,
.pkl-archive-page.light-theme .trophy-card h3 {
  color: #0f172a;
  -webkit-text-fill-color: initial;
}

.pkl-archive-page.light-theme .hero-subtitle,
.pkl-archive-page.light-theme .section-header p,
.pkl-archive-page.light-theme .team-city,
.pkl-archive-page.light-theme .star-team,
.pkl-archive-page.light-theme .venue-city,
.pkl-archive-page.light-theme .venue-significance,
.pkl-archive-page.light-theme .timeline-detail .runner-up {
  color: #475569;
}

.pkl-archive-page.light-theme .stat-card,
.pkl-archive-page.light-theme .timeline-card,
.pkl-archive-page.light-theme .team-card,
.pkl-archive-page.light-theme .star-card,
.pkl-archive-page.light-theme .venue-card,
.pkl-archive-page.light-theme .quiz-card,
.pkl-archive-page.light-theme .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.pkl-archive-page.light-theme .timeline-detail,
.pkl-archive-page.light-theme .trophy-meta-item,
.pkl-archive-page.light-theme .timeline-detail .stat-block {
  background: rgba(0, 0, 0, 0.03);
}

.pkl-archive-page.light-theme .quiz-option,
.pkl-archive-page.light-theme .search-input,
.pkl-archive-page.light-theme .select-filter {
  background: #ffffff;
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.1);
}

.pkl-archive-page.light-theme .subnav-bar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.pkl-archive-page.light-theme .subnav-btn {
  background: #ffffff;
  color: #475569;
}

.pkl-archive-page.light-theme .season-table th {
  background: rgba(255, 176, 31, 0.12);
}

.pkl-archive-page.light-theme .season-table th,
.pkl-archive-page.light-theme .season-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pkl-hero h1 { font-size: 2.2rem; }
  .pkl-hero { padding: 80px 16px 40px; }
  main { padding: 40px 16px; }
  .section-header h2 { font-size: 1.6rem; }
  .trophy-card,
  .timeline-card,
  .quiz-card { padding: 20px; }
}
