/* ============================================================
   MIKA Academy K-12 Styles
   أنماط منصة MIKA للتعليم K-12
   ============================================================ */

/* ---- K-12 HOME WRAPPER ---- */
.k12-home-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ---- HERO BANNER ---- */
.k12-hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin-bottom: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.k12-hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.k12-orb-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,140,66,0.15), transparent);
  top: -60px; right: -60px;
}

.k12-orb-2 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(108,99,255,0.15), transparent);
  bottom: -40px; left: -40px;
}

.k12-hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.k12-hero-mascot { width: 80px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.k12-hero-mascot svg { width: 100%; height: 100%; }

.k12-hero-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.k12-hero-sub {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* ---- STATS ROW ---- */
.k12-stats-row {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.k12-stat {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  flex: 1;
  min-width: 60px;
}

.k12-stat-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #FF8C42;
}

.k12-stat-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* ---- PILOT BADGE ---- */
.k12-pilot-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1.5px solid #4CAF50;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #1B5E20;
}

.k12-pilot-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ---- SECTION TITLE ---- */
.k12-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 12px;
}

/* ---- QUICK ACCESS ---- */
.k12-quick-access { margin-bottom: 20px; }

.k12-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.k12-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px;
  border-radius: 14px;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.k12-quick-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.k12-quick-science { background: linear-gradient(135deg, #667eea22, #764ba222); color: #4a3f9f; border: 1.5px solid #667eea55; }
.k12-quick-deen { background: linear-gradient(135deg, #1a237e22, #28359322); color: #1a237e; border: 1.5px solid #1a237e44; }
.k12-quick-review { background: linear-gradient(135deg, #FF8C4222, #e67e2222); color: #c0392b; border: 1.5px solid #FF8C4244; }
.k12-quick-math { background: linear-gradient(135deg, #1565C022, #0d47a122); color: #1565C0; border: 1.5px solid #1565C044; }

.k12-quick-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.08);
  font-weight: 700;
}

.k12-badge-hot { background: linear-gradient(135deg, #FF8C42, #e67e22); color: white; }
.k12-badge-new { background: linear-gradient(135deg, #4CAF50, #2E7D32); color: white; }

/* ---- STAGE CARDS ---- */
.k12-stages-section { margin-bottom: 20px; }

.k12-stages-list { display: flex; flex-direction: column; gap: 12px; }

.k12-stage-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  color: white;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.k12-stage-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.k12-stage-icon { font-size: 2.2rem; flex-shrink: 0; }

.k12-stage-info { flex: 1; }

.k12-stage-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }

.k12-stage-grades { font-size: 0.82rem; opacity: 0.9; }

.k12-stage-age { font-size: 0.78rem; opacity: 0.75; margin-top: 2px; }

.k12-stage-arrow { font-size: 1.4rem; opacity: 0.8; }

/* ---- PAGE WRAPPER ---- */
.k12-page-wrapper { max-width: 700px; margin: 0 auto; padding-bottom: 80px; }

/* ---- BACK BUTTON ---- */
.k12-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #667eea;
  background: white;
  color: #667eea;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
  transition: all 0.15s;
}

.k12-back-btn:hover { background: #667eea; color: white; }

/* ---- PAGE HEADER ---- */
.k12-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.k12-page-icon { font-size: 2.5rem; flex-shrink: 0; }

.k12-page-title { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; }

.k12-page-sub { margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* ---- GRADE CARDS ---- */
.k12-grades-list { display: flex; flex-direction: column; gap: 10px; }

.k12-grade-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.k12-grade-card:hover { transform: translateX(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.k12-grade-num {
  font-size: 1.8rem;
  font-weight: 900;
  min-width: 40px;
  text-align: center;
}

.k12-grade-info { flex: 1; }

.k12-grade-label { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; }

.k12-grade-subjects-count { font-size: 0.78rem; color: #666; margin-top: 2px; }

.k12-pilot-mini {
  font-size: 0.72rem;
  background: #e8f5e9;
  color: #2E7D32;
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.k12-grade-arrow { font-size: 1.2rem; color: #999; }

/* ---- SUBJECT GRID ---- */
.k12-subjects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.k12-subject-card {
  background: white;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.k12-subject-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

.k12-subject-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.k12-subject-title { font-size: 0.88rem; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }

.k12-badge-complete {
  font-size: 0.7rem;
  background: #e8f5e9;
  color: #2E7D32;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
}

.k12-badge-available {
  font-size: 0.7rem;
  background: #e3f2fd;
  color: #1565C0;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
}

/* ---- UNITS CONTAINER ---- */
.k12-units-container { display: flex; flex-direction: column; gap: 16px; }

.k12-unit-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.k12-unit-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.k12-unit-badge {
  background: #667eea;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.k12-unit-title { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; }

.k12-lessons-list { padding: 8px 0; }

.k12-lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}

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

.k12-lesson-item:hover { background: #f8f9fa; }

.k12-lesson-icon { font-size: 1.1rem; flex-shrink: 0; }

.k12-lesson-info { flex: 1; }

.k12-lesson-title { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; display: block; }

.k12-lesson-meta { font-size: 0.75rem; color: #888; }

.k12-lesson-arrow { color: #999; font-size: 1rem; }

/* ---- LESSON CONTENT ---- */
.k12-lesson-header {
  padding: 20px;
  border-radius: 16px;
  color: white;
  margin-bottom: 20px;
}

.k12-lesson-header h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }

.k12-lesson-body {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ---- QUIZ SECTION ---- */
.k12-quiz-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.k12-quiz-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 16px;
}

.k12-quiz-question {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.k12-quiz-question:last-child { border-bottom: none; margin-bottom: 0; }

.k12-q-text { font-size: 0.95rem; font-weight: 600; color: #1a1a2e; margin: 0 0 12px; }

.k12-q-options { display: flex; flex-direction: column; gap: 8px; }

.k12-q-option {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: white;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  color: #333;
}

.k12-q-option:hover:not(:disabled) {
  border-color: #667eea;
  background: #f0f4ff;
  color: #667eea;
}

.k12-q-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #f5f5f5;
}

/* ---- COMING SOON ---- */
.k12-coming-soon {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.k12-cs-icon { width: 80px; height: 80px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.k12-cs-icon svg { width: 100%; height: 100%; }

.k12-coming-soon h3 { font-size: 1.1rem; color: #1a1a2e; margin: 0 0 8px; }

.k12-coming-soon p { font-size: 0.88rem; color: #666; margin: 0 0 20px; line-height: 1.6; }

.k12-cs-progress-wrap { margin: 0 auto 16px; max-width: 300px; }

.k12-cs-progress {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.k12-cs-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.k12-cs-percent { font-size: 0.82rem; color: #666; margin: 0; }

.k12-notify-btn {
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s;
}

.k12-notify-btn:hover { transform: translateY(-2px); }

/* ---- LESSON CONTENT INNER STYLES ---- */
.lesson-content h3 { font-size: 1.1rem; color: #1a1a2e; margin: 0 0 16px; }
.lesson-content h4 { font-size: 0.95rem; color: #333; margin: 0 0 8px; }
.lesson-content p { font-size: 0.9rem; color: #444; line-height: 1.7; margin: 0 0 10px; }

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.concept-card {
  padding: 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.concept-card h4 { font-size: 0.88rem; margin: 0 0 6px; }
.concept-card p { font-size: 0.82rem; margin: 0 0 4px; }

.tip-card {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1.5px solid #FFD54F;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.tip-card h4 { font-size: 0.9rem; color: #E65100; margin: 0 0 6px; }
.tip-card p { font-size: 0.85rem; color: #5D4037; margin: 0 0 4px; }

.example-card {
  background: #f8f9fa;
  border-right: 4px solid #667eea;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  font-size: 0.88rem;
}

.example-card h4 { font-size: 0.9rem; color: #667eea; margin: 0 0 8px; }
.example-card p { font-size: 0.85rem; margin: 0 0 4px; }

.steps-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

.step {
  background: #f0f4ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #333;
}

.timeline-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.timeline-card h4 { font-size: 0.9rem; color: #333; margin: 0 0 10px; }

.timeline-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
  color: #444;
}

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

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 12px 0;
}

.math-table th {
  background: #667eea;
  color: white;
  padding: 8px 12px;
  text-align: center;
}

.math-table td {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.math-table tr:nth-child(even) td { background: #f8f9fa; }

.math-examples { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

.math-example {
  background: #f0f4ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.fraction-examples { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }

.fraction-card { text-align: center; font-size: 0.85rem; }

.alphabet-grid, .numbers-grid, .words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.letter-card, .num-card, .word-card {
  background: #f0f4ff;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.code-example { margin: 12px 0; }
.code-example h4 { font-size: 0.9rem; color: #333; margin: 0 0 8px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .k12-subjects-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .k12-quick-grid { grid-template-columns: 1fr; }
  .k12-hero-title { font-size: 1.3rem; }
}
