/* =====================================================================
 * BOARDS EXAM COUNTDOWN — NEW COLOUR STYLE (home page only)
 * ---------------------------------------------------------------------
 * Only the look changes; all dates, gaps and "days left" stay the same.
 * "#countdown-stage" in front of every rule makes these win over the
 * countdown's own built-in styles. To go back to the old look, remove the
 * <link href="countdown-theme.css"> line from index.html.
 * ===================================================================== */

/* ---------- Panel: violet → pink gradient frame ---------- */
#countdown-stage.theater-stage {
  border: 2px solid transparent !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #8b5cf6 0%, #c026d3 50%, #ec4899 100%) border-box !important;
  box-shadow: 0 18px 40px -22px rgba(76, 29, 149, 0.55), 0 2px 6px rgba(76, 29, 149, 0.08) !important;
}
#countdown-stage .countdown-card-inner {
  background:
    radial-gradient(600px 160px at 0% 0%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(500px 160px at 100% 0%, rgba(236, 72, 153, 0.08), transparent 70%),
    #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

/* Title */
#countdown-stage .countdown-header-row h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.02em;
  color: #1e1b4b !important;
}
#countdown-stage .countdown-header-row > div > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  box-shadow: 0 2px 0 rgba(76, 29, 149, 0.12);
}

/* ---------- Grade 10 / Grade 12 switch ---------- */
#countdown-stage .mobile-grade-tabs {
  background: #f5f3ff !important;
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
}
#countdown-stage .mobile-tab-btn {
  color: #6b21a8 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
#countdown-stage .mobile-tab-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #c026d3) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 0 #5b21b6, 0 8px 16px -8px rgba(124, 58, 237, 0.7) !important;
}

/* ---------- Grade column ---------- */
#countdown-stage .schedule-column {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#countdown-stage .schedule-col-header {
  border-bottom: 1.5px dashed rgba(124, 58, 237, 0.2) !important;
}
#countdown-stage .grade-badge {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  border: 0 !important;
}
#countdown-stage .g10-badge {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
  color: #5b21b6 !important;
}
#countdown-stage .g12-badge {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8) !important;
  color: #9d174d !important;
}
#countdown-stage .sub-heading-text { color: #6b7280 !important; }

/* Big countdown number: gradient instead of plain red */
#countdown-stage .days-label {
  color: #7c3aed !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
}
#countdown-stage .days-count-red {
  font-family: var(--font-display, 'Inter', sans-serif);
  background: linear-gradient(100deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-size: 1.45rem !important;
  letter-spacing: -0.02em;
}

/* ---------- Exam list as a timeline ---------- */
#countdown-stage .exams-timeline {
  position: relative;
  padding-left: 1.15rem !important;
}
#countdown-stage .exams-timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b5cf6, #ec4899 60%, rgba(236, 72, 153, 0.15));
}
#countdown-stage .exam-item-card {
  position: relative;
  overflow: visible !important;
  background: #ffffff !important;
  border: 1px solid rgba(124, 58, 237, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 0 rgba(76, 29, 149, 0.06), 0 8px 18px -14px rgba(76, 29, 149, 0.45) !important;
}
/* Dot on the timeline for each exam */
#countdown-stage .exam-item-card::before {
  content: "";
  position: absolute;
  left: calc(-1.15rem + 0.35rem - 4px);
  top: 0.85rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
#countdown-stage .exam-date-pill {
  color: #7c3aed !important;
  letter-spacing: 0.05em !important;
}
#countdown-stage .exam-subject-name { color: #1e1b4b !important; }
#countdown-stage .subject-code { color: #9ca3af; font-weight: 600; }

/* "days left" pills — colour by how close the exam is (set by the page script) */
#countdown-stage .days-left-red {
  background: #f5f3ff !important;
  border: 1px solid #ddd6fe !important;
  color: #6d28d9 !important;
}
#countdown-stage .days-left-red[data-urgency="warm"] {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}
#countdown-stage .days-left-red[data-urgency="hot"] {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}
#countdown-stage .exam-item-card:has(.days-left-red[data-urgency="warm"])::before { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15); }
#countdown-stage .exam-item-card:has(.days-left-red[data-urgency="hot"])::before { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }

/* ---------- Prep-gap rows: slim mint chips ---------- */
#countdown-stage .exam-gap-divider {
  background: rgba(16, 185, 129, 0.08) !important;
  border-left: 0 !important;
  border: 1px dashed rgba(16, 185, 129, 0.35) !important;
  border-radius: 999px !important;
  color: #047857 !important;
  margin-left: 0 !important;
  width: fit-content;
  max-width: 100%;
}
#countdown-stage .exam-gap-divider strong { color: #065f46 !important; }

/* Small tags */
#countdown-stage .opt-tag,
#countdown-stage .core-tag {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* Bottom note (phones) */
#countdown-stage .schedule-footer-bar {
  color: #6b7280 !important;
  border-top: 1px dashed rgba(124, 58, 237, 0.18) !important;
}
