/* ============================================================
   SHARED STYLES - Subject Pages (Biology, Physics, Chemistry)
   LIGHT THEME + Subject-wise Card Colors
   ============================================================ */

/* ---------- Subject Banner ---------- */
.subject-banner {
   padding: 40px 0;
   text-align: center;
   position: relative;
}

.biology-banner-bg { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.physics-banner-bg { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.chemistry-banner-bg { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.dpp-banner-bg { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }

.subject-banner-content { position: relative; z-index: 1; }

.subject-icon-large {
   width: 70px;
   height: 70px;
   border-radius: 18px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 30px;
   color: #fff;
   margin-bottom: 14px;
}

.biology-banner-bg .subject-icon-large { background: linear-gradient(135deg, #16a34a, #15803d); }
.physics-banner-bg .subject-icon-large { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.chemistry-banner-bg .subject-icon-large { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dpp-banner-bg .subject-icon-large { background: linear-gradient(135deg, #0d9488, #0f766e); }

.subject-banner h1 {
   font-size: 28px;
   font-weight: 800;
   color: #1a1a2e;
   margin-bottom: 8px;
}

.subject-banner p {
   font-size: 15px;
   color: #64748b;
   margin-bottom: 12px;
}

.breadcrumb-links { font-size: 13px; color: #94a3b8; }
.breadcrumb-links a { color: #FF0043; text-decoration: none; }
.breadcrumb-links a:hover { text-decoration: underline; }
.breadcrumb-links span { margin: 0 6px; }

/* ---------- Subject Page Body ---------- */
.subject-page-body {
   padding: 40px 0 60px;
   background: #f8fafc;
}

/* ---------- Section Block ---------- */
.sp-section {
   margin-bottom: 40px;
}

.sp-section-header {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 20px;
}

.sp-section-icon {
   width: 40px;
   height: 40px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   color: #fff;
   flex-shrink: 0;
}

.sp-section-header h2 {
   margin: 0;
   font-size: 22px;
   font-weight: 700;
   color: #1a1a2e;
}

/* Subject-wise heading colors */
.sp-biology .sp-section-header h2 { color: #16a34a; }
.sp-physics .sp-section-header h2 { color: #2563eb; }
.sp-chemistry .sp-section-header h2 { color: #f59e0b; }
.sp-dpp .sp-section-header h2 { color: #0d9488; }

.sp-section-header p {
   margin: 0;
   font-size: 14px;
   color: #64748b;
}

/* Biology / Physics / Chemistry color variants */
.sp-biology .sp-section-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.sp-physics .sp-section-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sp-chemistry .sp-section-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sp-dpp .sp-section-icon { background: linear-gradient(135deg, #0d9488, #0f766e); }

/* ---------- Guide Cards (Score + Marking) ---------- */
.guide-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 20px;
   margin-bottom: 40px;
}

.guide-box {
   background: #fff;
   border-radius: 14px;
   padding: 24px;
   box-shadow: 0 4px 16px rgba(0,0,0,0.06);
   border: 1px solid #f1f5f9;
}

.guide-title {
   font-size: 16px;
   font-weight: 700;
   margin-bottom: 16px;
   color: #323450;
   display: flex;
   align-items: center;
   gap: 8px;
}

.guide-title i {
   color: #FF0043;
   font-size: 18px;
}

/* Subject-wise guide title icon */
.sp-biology .guide-title i { color: #16a34a; }
.sp-physics .guide-title i { color: #2563eb; }
.sp-chemistry .guide-title i { color: #f59e0b; }
.sp-dpp .guide-title i { color: #0d9488; }

.guide-table {
   width: 100%;
   border-collapse: collapse;
}

.guide-table th {
   background: #323450;
   color: #fff;
   padding: 10px 14px;
   text-align: center;
   font-size: 13px;
   font-weight: 600;
}

/* Subject-wise guide table header */
.sp-biology .guide-table th { background: linear-gradient(135deg, #16a34a, #15803d); }
.sp-physics .guide-table th { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sp-chemistry .guide-table th { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sp-dpp .guide-table th { background: linear-gradient(135deg, #0d9488, #0f766e); }

.guide-table th:first-child { border-radius: 8px 0 0 0; }
.guide-table th:last-child { border-radius: 0 8px 0 0; }

.guide-table td {
   padding: 10px 14px;
   border-bottom: 1px solid #f1f5f9;
   text-align: center;
   font-size: 14px;
   color: #333;
}

.guide-table tr:last-child td { border-bottom: none; }

.excellent { color: #16a34a; font-weight: 700; }
.verygood { color: #0ea5e9; font-weight: 700; }
.good { color: #2563eb; font-weight: 700; }
.average { color: #f59e0b; font-weight: 700; }
.poor { color: #ef4444; font-weight: 700; }

/* ---------- Chapter MCQ Cards ---------- */
.chapter-grid {
   display: grid;
   grid-template-columns: repeat(6, 1fr);
   gap: 14px;
}

.chapter-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
   text-decoration: none;
   background: #fff;
   border: 2px solid #e2e8f0;
   border-radius: 14px;
   padding: 24px 12px 20px;
   transition: all 0.3s ease;
   cursor: pointer;
}

.chapter-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 12px 28px rgba(0,0,0,0.1);
   color: inherit;
}

/* Color accent on hover */
.sp-biology .chapter-card:hover { border-color: #16a34a; }
.sp-physics .chapter-card:hover { border-color: #2563eb; }
.sp-chemistry .chapter-card:hover { border-color: #f59e0b; }
.sp-dpp .chapter-card:hover { border-color: #0d9488; }

.chapter-num {
   width: 48px;
   height: 48px;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 18px;
   font-weight: 800;
   color: #fff;
   margin-bottom: 10px;
}

.sp-biology .chapter-num { background: linear-gradient(135deg, #16a34a, #15803d); }
.sp-physics .chapter-num { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sp-chemistry .chapter-num { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sp-dpp .chapter-num { background: linear-gradient(135deg, #0d9488, #0f766e); }

.chapter-label {
   font-size: 12px;
   font-weight: 700;
   color: #1a1a2e;
   line-height: 1.3;
}

.chapter-action {
   margin-top: 10px;
   font-size: 11px;
   font-weight: 600;
   color: #94a3b8;
   display: flex;
   align-items: center;
   gap: 4px;
   transition: color 0.2s;
}

.chapter-card:hover .chapter-action {
   color: #FF0043;
}

/* ---------- Mock Test Cards ---------- */
.mock-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 20px;
}

.mock-card {
   background: #fff;
   border: 2px solid #e2e8f0;
   border-radius: 14px;
   overflow: hidden;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
}

.mock-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.mock-card.in-progress {
   border: 2px solid #e2e8f0;
   border-radius: 14px;
}

/* Subject-wise card header colors */
.mock-card-header {
   padding: 16px 18px;
   color: #fff;
}

.sp-biology .mock-card-header { background: linear-gradient(135deg, #16a34a, #15803d); }
.sp-physics .mock-card-header { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.sp-chemistry .mock-card-header { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sp-dpp .mock-card-header { background: linear-gradient(135deg, #0d9488, #0f766e); }

.mock-card-bology.in-progress .mock-card-header { background: linear-gradient(135deg, #16a34a, #323450); }
.mock-card-physics.in-progress .mock-card-header { background: linear-gradient(135deg, #2563eb, #323450); }
.mock-card-chemistry.in-progress .mock-card-header { background: linear-gradient(135deg, #f59e0b, #323450); }
.mock-card-dpp.in-progress .mock-card-header { background: linear-gradient(135deg, #0d9488, #323450); }

.mock-card-header h4 {
   margin: 0;
   font-size: 16px;
   font-weight: 700;
   color: #fff;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.mock-card-header .badge-ip {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   background: rgba(255,255,255,0.25);
   color: #fff;
   padding: 4px 10px;
   border-radius: 20px;
   font-size: 11px;
   font-weight: 600;
   margin-top: 6px;
}

.mock-card-body {
   padding: 18px;
   flex: 1;
   display: flex;
   flex-direction: column;
}

.mock-desc {
   font-size: 13px;
   color: #64748b;
   margin-bottom: 14px;
   line-height: 1.5;
}

.mock-stats {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 8px;
   margin-bottom: 16px;
}

.mock-stat {
   background: #f8fafc;
   border: 1px solid #f1f5f9;
   border-radius: 8px;
   padding: 8px;
   text-align: center;
}

.mock-stat-val {
   font-size: 16px;
   font-weight: 700;
   color: #1a1a2e;
}

.mock-stat-label {
   font-size: 11px;
   color: #94a3b8;
   margin-top: 2px;
}

.mock-result {
   display: flex;
   gap: 8px;
   margin-bottom: 16px;
}

.mock-result-item {
   flex: 1;
   border-radius: 8px;
   padding: 8px;
   text-align: center;
   color: #fff;
}

.mock-result-item h6 {
   margin: 0;
   font-size: 10px;
   font-weight: 600;
   color: #fff;
   opacity: 0.9;
}

.mock-result-item h4 {
   margin: 2px 0 0;
   font-size: 16px;
   font-weight: 700;
   color: #fff;
}

.mock-result-best { background: #323450; }
.mock-result-pass { background: #16a34a; }
.mock-result-fail { background: #ef4444; }

.mock-actions {
   display: flex;
   gap: 8px;
   margin-top: auto;
}

.mock-actions .btn-start {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   padding: 10px 16px;
   background: #FF0043;
   color: #fff;
   border: none;
   border-radius: 8px;
   font-size: 13px;
   font-weight: 600;
   text-decoration: none;
   transition: all 0.2s;
}

.mock-actions .btn-start:hover {
   background: #e6003c;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(255,0,67,0.3);
   color: #fff;
}

/* Subject-wise Start button colors */
.sp-biology .mock-actions .btn-start { background: #16a34a; }
.sp-biology .mock-actions .btn-start:hover { background: #15803d; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }

.sp-physics .mock-actions .btn-start { background: #2563eb; }
.sp-physics .mock-actions .btn-start:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

.sp-chemistry .mock-actions .btn-start { background: #f59e0b; }
.sp-chemistry .mock-actions .btn-start:hover { background: #d97706; box-shadow: 0 4px 12px rgba(245,158,11,0.3); }

.sp-dpp .mock-actions .btn-start { background: #0d9488; }
.sp-dpp .mock-actions .btn-start:hover { background: #0f766e; box-shadow: 0 4px 12px rgba(13,148,136,0.3); }

.mock-actions .btn-secondary-sm {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   background: #f1f5f9;
   color: #64748b;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   font-size: 14px;
   text-decoration: none;
   transition: all 0.2s;
   flex-shrink: 0;
}

.mock-actions .btn-secondary-sm:hover {
   background: #e2e8f0;
   color: #323450;
}

.mock-actions .btn-danger-sm {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 38px;
   height: 38px;
   background: #fef2f2;
   color: #ef4444;
   border: 1px solid #fecaca;
   border-radius: 8px;
   font-size: 14px;
   transition: all 0.2s;
   flex-shrink: 0;
   cursor: pointer;
}

.mock-actions .btn-danger-sm:hover {
   background: #ef4444;
   color: #fff;
}

.mock-locked {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   padding: 10px 16px;
   background: #f1f5f9;
   color: #94a3b8;
   border: none;
   border-radius: 8px;
   font-size: 13px;
   font-weight: 600;
   width: 100%;
}

.mock-empty {
   grid-column: 1 / -1;
   text-align: center;
   padding: 60px 20px;
   color: #94a3b8;
}

.mock-empty i {
   font-size: 48px;
   margin-bottom: 16px;
   display: block;
}

.mock-empty h5 {
   margin: 0;
   font-size: 16px;
   font-weight: 600;
   color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
   .chapter-grid {
      grid-template-columns: repeat(4, 1fr);
   }

   .mock-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 768px) {
   .subject-banner { padding: 30px 0; }
   .subject-banner h1 { font-size: 22px; }
   .subject-page-body { padding: 24px 0 40px; }

   .guide-grid {
      grid-template-columns: 1fr;
      gap: 14px;
   }

   .guide-box { padding: 16px; }
   .guide-title { font-size: 15px; }
   .guide-table th,
   .guide-table td { font-size: 12px; padding: 8px; }

   .chapter-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
   }

   .chapter-card { padding: 16px 8px 14px; }
   .chapter-num { width: 40px; height: 40px; font-size: 16px; }
   .chapter-label { font-size: 11px; }

   .mock-grid {
      grid-template-columns: 1fr;
   }

   .mock-card-header h4 { font-size: 15px; }
}

@media (max-width: 480px) {
   .chapter-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}
