/* ==========================================================================
   GG-Idea Innovations - JAMB UTME CBT Practice Stylesheet
   Mobile-First, Accessible, High-Contrast & Authentic UTME Exam Experience
   ========================================================================== */

/* Top Mode Navigation Tabs */
.jamb-tabs-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jamb-tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.jamb-tab-btn:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.jamb-tab-btn.active {
  color: white;
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #047857 100%);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

/* Disclaimer Box */
.jamb-disclaimer-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.jamb-disclaimer-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.jamb-disclaimer-title {
  font-weight: 800;
  color: #92400E;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.jamb-disclaimer-text {
  font-size: 0.88rem;
  color: #78350F;
  line-height: 1.55;
  margin: 0;
}

/* Setup Card */
.jamb-setup-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}

.jamb-form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* Subject Checkbox Grid */
.jamb-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.jamb-subject-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-light);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.jamb-subject-checkbox-card input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--emerald-500);
}

.jamb-subject-checkbox-card:hover {
  border-color: var(--emerald-500);
  background: #F0FDF4;
}

.jamb-subject-checkbox-card.selected {
  border-color: var(--emerald-500);
  background: #ECFDF5;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.jamb-subject-checkbox-card.disabled-locked {
  opacity: 0.85;
  cursor: not-allowed;
  border-color: rgba(16, 185, 129, 0.6);
  background: #F0FDF4;
}

.jamb-checkbox-body {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.jamb-checkbox-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.jamb-checkbox-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.jamb-checkbox-text small {
  font-size: 0.78rem;
  color: var(--text-muted-dark);
  line-height: 1.35;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   Exam Room Layout & Subject Switcher
   ========================================================================== */
.jamb-exam-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: flex-start;
}

.jamb-exam-header-bar {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 75px;
  z-index: 100;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 4-Subject Tabs in Header */
.jamb-subject-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.jamb-subject-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.jamb-subject-tab:hover {
  border-color: var(--emerald-500);
  background: #F0FDF4;
}

.jamb-subject-tab.active {
  background: linear-gradient(135deg, #065F46 0%, #059669 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.jamb-tab-icon {
  font-size: 1.1rem;
}

.jamb-tab-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.jamb-subject-tab.active .jamb-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Timer Badge */
.jamb-timer-badge {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald-500);
  background: #ECFDF5;
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.jamb-timer-badge.warning {
  color: #EF4444;
  background: #FEF2F2;
  border-color: #EF4444;
  animation: jambTimerPulse 1s infinite alternate;
}

@keyframes jambTimerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Question Canvas Card */
.jamb-question-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.jamb-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.jamb-question-title {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Options Grid */
.jamb-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.jamb-option-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.35rem;
  background: var(--bg-light);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.jamb-option-card:hover {
  border-color: var(--emerald-500);
  background: #F0FDF4;
  transform: translateX(3px);
}

.jamb-option-card.selected {
  border-color: var(--emerald-500);
  background: #ECFDF5;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.jamb-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-subtle);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.jamb-option-card.selected .jamb-option-key {
  background: var(--emerald-500);
  color: white;
  border-color: var(--emerald-500);
}

.jamb-option-text {
  font-size: 1.02rem;
  color: var(--text-dark);
  line-height: 1.5;
  flex-grow: 1;
}

/* Flag Button */
.jamb-btn-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted-dark);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.jamb-btn-flag:hover {
  background: #FFFBEB;
  color: var(--gold-500);
  border-color: var(--gold-500);
}

.jamb-btn-flag.active {
  background: #FEF3C7;
  color: #92400E;
  border-color: var(--gold-500);
}

/* Action Bar */
.jamb-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Question Palette (Desktop Sidebar & Mobile Drawer)
   ========================================================================== */
.jamb-palette-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 155px;
}

.jamb-palette-legend {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted-dark);
}

.jamb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jamb-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jamb-legend-dot.answered { background: var(--emerald-500); }
.jamb-legend-dot.flagged { background: var(--gold-500); }
.jamb-legend-dot.unanswered { background: #E5E7EB; border: 1px solid #D1D5DB; }

.jamb-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.jamb-palette-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-light);
  color: var(--text-dark);
}

.jamb-palette-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary-600);
}

.jamb-palette-btn.answered {
  background: var(--emerald-500);
  color: white;
}

.jamb-palette-btn.flagged {
  background: var(--gold-500);
  color: white;
}

.jamb-palette-btn.unanswered {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}

.jamb-palette-btn.current {
  box-shadow: 0 0 0 3px var(--primary-600);
  font-weight: 900;
}

/* Mobile Floating Palette */
.jamb-mobile-palette-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--emerald-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
  z-index: 999;
  cursor: pointer;
}

.jamb-palette-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jamb-palette-drawer.open {
  transform: translateY(0);
}

/* ==========================================================================
   Results View & Institutional Competitiveness Breakdown
   ========================================================================== */
.jamb-results-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  text-align: center;
}

.jamb-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.jamb-score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.jamb-score-circle.exceptional {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.jamb-score-circle.very-strong {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
}

.jamb-score-circle.standard {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: white;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35);
}

.jamb-score-circle.moderate {
  background: linear-gradient(135deg, #EA580C, #FB923C);
  color: white;
}

.jamb-score-circle.remedial {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
}

.jamb-grade-badge {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.jamb-grade-badge.exceptional { background: #ECFDF5; color: #065F46; }
.jamb-grade-badge.very-strong { background: #EFF6FF; color: #1E40AF; }
.jamb-grade-badge.standard { background: #FFFBEB; color: #92400E; }
.jamb-grade-badge.moderate { background: #FFF7ED; color: #9A3412; }
.jamb-grade-badge.remedial { background: #FEF2F2; color: #991B1B; }

/* Subject Cards Grid */
.jamb-subject-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.jamb-subject-card {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.jamb-subject-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jamb-subject-card-icon {
  font-size: 1.3rem;
  margin-right: 0.4rem;
}

.jamb-subject-card-score {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-700);
}

.jamb-progress-track {
  height: 8px;
  background: #E5E7EB;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.jamb-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* Detailed Question Review Cards */
.jamb-review-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid #D1D5DB;
  transition: all var(--transition-fast);
}

.jamb-review-card.is-correct {
  border-left-color: var(--emerald-500);
}

.jamb-review-card.is-wrong {
  border-left-color: #EF4444;
}

.jamb-review-card.is-unanswered {
  border-left-color: #9CA3AF;
}

.jamb-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jamb-explanation-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Homepage JAMB Promo Section Styles
   ========================================================================== */
.section-jamb-promo {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5.5rem 0;
}

.section-jamb-promo::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-jamb-promo::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.jamb-promo-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.jamb-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(110, 231, 183, 0.4);
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.jamb-promo-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #F8FAFC;
}

.jamb-promo-title .text-gradient-jamb {
  background: linear-gradient(135deg, #34D399 0%, #FBBF24 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jamb-promo-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.jamb-pill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.jamb-pill-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.jamb-pill-chip.primary-course {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.6);
  color: #A7F3D0;
  font-weight: 700;
}

.jamb-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.jamb-feature-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.jamb-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.jamb-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.jamb-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 0.65rem;
}

.jamb-feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0;
}

.jamb-promo-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.jamb-promo-disclaimer {
  max-width: 860px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94A3B8;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
}

.jamb-promo-disclaimer svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #F59E0B;
  margin-top: 2px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .jamb-exam-wrapper {
    grid-template-columns: 1fr;
  }
  .jamb-palette-card {
    display: none;
  }
  .jamb-mobile-palette-toggle {
    display: flex;
  }
  .jamb-palette-drawer {
    display: block;
  }
}

@media (max-width: 640px) {
  .jamb-exam-header-bar {
    top: 60px;
    padding: 0.75rem 1rem;
  }
  .jamb-subject-tab {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
  .jamb-score-circle {
    width: 130px;
    height: 130px;
    font-size: 2.6rem;
  }
}
