/* ==========================================================================
   INCREDIBLE INDIA EXPLORER — INDIAN SPORTS MASCOTS STYLESHEET
   Issue: #2560
   ========================================================================== */

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

/* ── Scope ─────────────────────────────────────────────────────── */
.mascots-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 ───────────────────────────────────────────────────────── */
.mascot-hero {
  position: relative;
  padding: 100px 20px 60px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 176, 31, 0.15), transparent 70%),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 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;
}

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

.mascot-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;
}

.mascot-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, #f59e0b, #dc2626);
  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;
}

/* ── 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;
}

/* ── Mascot cards grid ─────────────────────────────────────────── */
.mascot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mascot-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, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

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

.mascot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 31, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.mascot-emoji {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

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

.mascot-event {
  color: var(--mascot-color, #ffb01f);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mascot-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.mascot-meta strong {
  color: #cbd5e1;
}

.mascot-view-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 176, 31, 0.12);
  color: #ffb01f;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Timeline ─────────────────────────────────────────────────── */
.timeline-track {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.timeline-item {
  flex: 0 0 240px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

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

.timeline-year {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffb01f;
  margin-bottom: 8px;
}

.timeline-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.timeline-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-event {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── 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-progress {
  font-size: 0.85rem;
  color: #ffb01f;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-question {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
}

.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;
}

.quiz-explanation {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 176, 31, 0.08);
  border-left: 3px solid #ffb01f;
  font-size: 0.9rem;
  color: #cbd5e1;
  display: none;
  line-height: 1.6;
}

.quiz-score {
  text-align: center;
  font-size: 1.5rem;
  color: #ffb01f;
  font-weight: 700;
  margin: 20px 0;
}

.quiz-restart {
  display: block;
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

/* ── Credits ───────────────────────────────────────────────────── */
.credits-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.credit-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.credit-item:last-child {
  border-bottom: none;
}

.credit-item strong {
  color: #ffb01f;
}

/* ── 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: 640px;
  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);
}

.modal-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  display: block;
}

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

.modal-event {
  color: #ffb01f;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  color: #ffb01f;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.modal-section p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

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

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

.modal-meta-item .value {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-credit {
  margin-top: 20px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.5;
}

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

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

.mascots-archive-page.light-theme .mascot-hero h1,
.mascots-archive-page.light-theme .section-header h2,
.mascots-archive-page.light-theme .mascot-name,
.mascots-archive-page.light-theme .timeline-name,
.mascots-archive-page.light-theme .modal-name,
.mascots-archive-page.light-theme .quiz-question {
  color: #0f172a;
  -webkit-text-fill-color: initial;
}

.mascots-archive-page.light-theme .hero-subtitle,
.mascots-archive-page.light-theme .section-header p,
.mascots-archive-page.light-theme .mascot-meta,
.mascots-archive-page.light-theme .timeline-event,
.mascots-archive-page.light-theme .modal-section p,
.mascots-archive-page.light-theme .credit-item {
  color: #475569;
}

.mascots-archive-page.light-theme .stat-card,
.mascots-archive-page.light-theme .mascot-card,
.mascots-archive-page.light-theme .timeline-item,
.mascots-archive-page.light-theme .quiz-card,
.mascots-archive-page.light-theme .credits-box,
.mascots-archive-page.light-theme .modal-content {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

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

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

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

.mascots-archive-page.light-theme .modal-meta-item,
.mascots-archive-page.light-theme .modal-credit {
  background: rgba(0, 0, 0, 0.03);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mascot-hero h1 { font-size: 2.2rem; }
  .mascot-hero { padding: 80px 16px 40px; }
  main { padding: 40px 16px; }
  .section-header h2 { font-size: 1.6rem; }
  .quiz-card,
  .modal-content { padding: 20px; }
  .modal-meta-grid { grid-template-columns: 1fr; }
}
