/**
 * MIKA Academy v60 — Styles
 * الصفحة الرئيسية + باب صيف المتفوقين
 * الألوان: #1a2744 كحلي | #d4af37 ذهبي
 */

/* ══════════════════════════════════════
   HOME v60
══════════════════════════════════════ */
.mika-home-v60 {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  padding-bottom: 32px;
  background: #f5f7ff;
  min-height: 100vh;
}

/* ── HERO ── */
.mh60-hero {
  background: linear-gradient(135deg, #1a2744 0%, #2d4a7a 50%, #1a3a5c 100%);
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
}
.mh60-hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.mh60-orb { position: absolute; border-radius: 50%; opacity: .12; }
.mh60-orb1 { width: 200px; height: 200px; background: #d4af37; top: -60px; left: -60px; }
.mh60-orb2 { width: 140px; height: 140px; background: #5c6bc0; bottom: -40px; right: -40px; }
.mh60-orb3 { width: 80px; height: 80px; background: #d4af37; top: 40px; right: 80px; }
.mh60-hero-inner { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.mh60-mascot { flex-shrink: 0; }
.mh60-hero-title { color: #d4af37; font-size: 26px; font-weight: 900; margin: 0 0 4px; }
.mh60-hero-sub { color: rgba(255,255,255,.85); font-size: 14px; margin: 0; }
.mh60-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.mh60-stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 8px; text-align: center; }
.mh60-stat-n { display: block; color: #d4af37; font-size: 18px; font-weight: 900; }
.mh60-stat-l { display: block; color: rgba(255,255,255,.8); font-size: 11px; margin-top: 2px; }

/* ── SUMMER BANNER ── */
.mh60-summer-banner {
  margin: 14px 14px 0;
  background: linear-gradient(135deg, #f57f17 0%, #e53935 50%, #7b1fa2 100%);
  border-radius: 20px;
  padding: 20px 18px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(229,57,53,.35);
  transition: transform .2s, box-shadow .2s;
}
.mh60-summer-banner:hover { transform: scale(1.02); box-shadow: 0 10px 32px rgba(229,57,53,.5); }
.mh60-summer-banner:active { transform: scale(.99); }
.mh60-summer-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.15) 0%, transparent 70%);
}
.mh60-summer-inner { display: flex; align-items: center; gap: 14px; position: relative; }
.mh60-summer-icon { font-size: 40px; flex-shrink: 0; }
.mh60-summer-text h2 { color: white; font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.mh60-summer-text p { color: rgba(255,255,255,.9); font-size: 13px; margin: 0; }
.mh60-summer-arrow { color: rgba(255,255,255,.7); font-size: 22px; margin-right: auto; }
.mh60-summer-badges { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mh60-sbadge {
  background: rgba(255,255,255,.2); color: white;
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; backdrop-filter: blur(4px);
}

/* ── SECTIONS ── */
.mh60-section { margin: 16px 14px 0; }
.mh60-section-title {
  font-size: 16px; font-weight: 900; color: #1a2744;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}

/* ── QUICK CARDS ── */
.mh60-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 400px) { .mh60-quick-grid { grid-template-columns: repeat(2, 1fr); } }
.mh60-quick-card {
  background: white; border-radius: 16px; padding: 14px 10px;
  text-align: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  border-top: 3px solid var(--qc-color, #5c6bc0);
  transition: transform .18s, box-shadow .18s;
}
.mh60-quick-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.mh60-quick-card:active { transform: scale(.97); }
.mh60-qc-icon { font-size: 26px; margin-bottom: 6px; }
.mh60-qc-title { font-size: 12px; font-weight: 700; color: #1a2744; margin-bottom: 6px; line-height: 1.3; }
.mh60-qc-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.mh60-badge-done { background: #e8f5e9; color: #2e7d32; }
.mh60-badge-hot { background: #fce4ec; color: #c62828; }

/* ── STAGE BLOCKS ── */
.mh60-stage-block { background: white; border-radius: 18px; overflow: hidden; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.mh60-stage-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.mh60-stage-hicon { font-size: 22px; }
.mh60-stage-htitle { color: white; font-size: 16px; font-weight: 900; }
.mh60-grades-list { padding: 6px 0; }
.mh60-grade-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid #f5f7ff;
  transition: background .15s;
}
.mh60-grade-row:last-child { border-bottom: none; }
.mh60-grade-row:hover { background: #f9f9ff; }
.mh60-grade-done:hover { background: #f0f4ff; }
.mh60-grade-icon { font-size: 20px; flex-shrink: 0; }
.mh60-grade-info { flex: 1; }
.mh60-grade-name { font-size: 14px; font-weight: 700; color: #1a2744; margin-bottom: 4px; }
.mh60-grade-subjects { display: flex; flex-wrap: wrap; gap: 4px; }
.mh60-subj { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; }
.mh60-subj-done { background: #e8f5e9; color: #2e7d32; }
.mh60-subj-coming { background: #f5f5f5; color: #9e9e9e; }
.mh60-grade-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; flex-shrink: 0; }
.mh60-grade-done .mh60-grade-badge { background: #e8f5e9; color: #2e7d32; }
.mh60-grade-coming .mh60-grade-badge { background: #f5f5f5; color: #9e9e9e; }
.mh60-grade-coming { opacity: .75; }

/* ── FOOTER ── */
.mh60-footer-hint {
  margin: 20px 14px 0;
  background: linear-gradient(135deg, #1a2744, #2d4a7a);
  border-radius: 16px; padding: 14px 18px; text-align: center;
  color: rgba(255,255,255,.85); font-size: 13px;
}

/* ══════════════════════════════════════
   SUMMER CHAMP
══════════════════════════════════════ */
.mika-summer {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: #f5f7ff;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ── SUMMER HERO ── */
.ms-hero {
  background: linear-gradient(135deg, #e65100, #c62828, #4a148c);
  padding: 28px 20px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ms-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,193,7,.2) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(156,39,176,.2) 0%, transparent 60%);
}
.ms-back-btn {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.2); color: white;
  border: none; border-radius: 20px; padding: 8px 16px;
  font-family: 'Cairo', sans-serif; font-size: 13px;
  font-weight: 700; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .2s;
}
.ms-back-btn:hover { background: rgba(255,255,255,.3); }
.ms-hero-content { position: relative; }
.ms-sun { font-size: 64px; animation: sunSpin 6s linear infinite; display: inline-block; }
@keyframes sunSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ms-hero-title { color: white; font-size: 32px; font-weight: 900; margin: 8px 0 6px; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ms-hero-sub { color: rgba(255,255,255,.9); font-size: 15px; margin: 0 0 20px; }
.ms-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ms-hbadge {
  background: rgba(255,255,255,.2); color: white;
  font-size: 13px; font-weight: 700; padding: 6px 14px;
  border-radius: 20px; backdrop-filter: blur(4px);
}

/* ── SECTIONS ── */
.ms-section { margin: 20px 14px 0; }
.ms-section-title {
  font-size: 17px; font-weight: 900;
  margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.ms-cs-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; background: #fce4ec; color: #c62828; margin-right: 6px;
}

/* ── GRADE CARDS ── */
.ms-grade-cards { display: grid; gap: 12px; }
.ms-grade-card {
  border-radius: 18px; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.ms-grade-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.ms-grade-card:active { transform: scale(.98); }
.ms-gc-icon { font-size: 36px; flex-shrink: 0; }
.ms-gc-info { flex: 1; }
.ms-gc-title { color: white; font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.ms-gc-desc { color: rgba(255,255,255,.85); font-size: 13px; }
.ms-gc-arrow { color: rgba(255,255,255,.7); font-size: 24px; flex-shrink: 0; }

/* ── CONTENT SECTION ── */
.ms-content-section {
  background: white; border-radius: 18px; padding: 18px 16px; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.ms-cs-title { font-size: 16px; font-weight: 900; margin: 0 0 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ms-cs-desc { font-size: 13px; color: #666; margin: 0 0 14px; }

/* ── ITEMS GRID ── */
.ms-cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 380px) { .ms-cs-grid { grid-template-columns: 1fr; } }
.ms-item {
  background: #f9f9ff; border-radius: 14px; padding: 14px 12px;
  cursor: pointer; text-align: center; border: 1.5px solid #e8e8f0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-decoration: none; display: flex; flex-direction: column; align-items: center;
}
.ms-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.ms-item:active { transform: scale(.97); }
.ms-item-icon { font-size: 30px; margin-bottom: 6px; }
.ms-item-title { font-size: 13px; font-weight: 700; color: #1a2744; margin-bottom: 4px; line-height: 1.3; }
.ms-item-meta { font-size: 11px; color: #888; margin-bottom: 10px; }
.ms-item-action { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 12px; }
.ms-action-game { background: #e8eaf6; color: #3949ab; }
.ms-action-exp { background: #e8f5e9; color: #2e7d32; }
.ms-action-video { background: #fce4ec; color: #c62828; }
.ms-action-drill { background: #fff8e1; color: #f57f17; }
.ms-item-game:hover { border-color: #7986cb; }
.ms-item-exp:hover { border-color: #66bb6a; }
.ms-item-video:hover { border-color: #ef5350; }
.ms-item-drill:hover { border-color: #ffa726; }

/* ── GRADE HEADER ── */
.ms-grade-header {
  border-radius: 16px; padding: 20px 18px; display: flex; align-items: center;
  gap: 14px; margin-bottom: 16px;
}
.ms-gh-icon { font-size: 36px; flex-shrink: 0; }
.ms-gh-title { color: white; font-size: 20px; font-weight: 900; margin: 0 0 4px; }
.ms-gh-sub { color: rgba(255,255,255,.85); font-size: 13px; margin: 0; }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
