/* ═══════════════════════════════════════════════════════
   index.css  —  Landing page, Footer, Games hub
═══════════════════════════════════════════════════════ */

/* ─── BODY OVERRIDE FOR LANDING ─── */
.landing-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
}
.landing-body #stars-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.55;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex; align-items: center; gap: 48px;
  position: relative; z-index: 1; min-height: 520px;
}
.hero-bg-blob {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(60px); opacity: 0.35; z-index: 0;
}
.hero-blob-1 { width: 400px; height: 400px; background: rgba(255,159,67,0.3); top: -60px; left: -80px; }
.hero-blob-2 { width: 300px; height: 300px; background: rgba(72,219,251,0.2); bottom: 0; right: -60px; }
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,159,67,0.14); border: 1px solid rgba(255,159,67,0.4);
  font-size: 13px; font-weight: 800; color: var(--orange);
  margin-bottom: 18px; letter-spacing: 0.5px;
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.15; color: var(--text);
  margin-bottom: 18px;
}
.hero-title-highlight {
  background: linear-gradient(135deg, #FF6B6B, #FF9F43, #FECA57);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 16px; font-weight: 700; color: #876957; max-width: 420px; line-height: 1.65; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 18px;
  font-family: 'Fredoka One', cursive; font-size: 17px;
  text-decoration: none; transition: transform 0.22s, box-shadow 0.22s;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #FF7A6E, #FFB04E); color: #fff;
  box-shadow: 0 14px 30px rgba(255,107,67,0.28);
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.88); color: var(--red);
  border: 1px solid rgba(255,216,160,0.9);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(255,107,67,0.22); }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.hstat {
  background: rgba(255,255,255,0.78); border-radius: 14px;
  padding: 8px 14px; font-size: 13px; font-weight: 800; color: #876957;
  border: 1px solid rgba(255,216,160,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.hstat strong { color: var(--red); }

/* Hero book 3D visual */
.hero-visual { flex-shrink: 0; position: relative; z-index: 1; }
.hero-book-wrap {
  position: relative; width: 220px; height: 290px;
  animation: bookFloat 5.4s ease-in-out infinite;
}
.hero-book {
  width: 220px; height: 290px; position: relative;
  transform-style: preserve-3d;
}
.hero-book-spine {
  position: absolute; left: -13px; top: 4px; bottom: 4px; width: 13px;
  background: linear-gradient(to right, #C0392B, #E74C3C);
  border-radius: 4px 0 0 4px;
}
.hero-book-front {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #FF6B6B 0%, #FF9F43 45%, #FECA57 100%);
  border-radius: 4px 18px 18px 4px;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 8px 12px 40px rgba(200,80,20,0.4), -4px 0 0 #C0392B;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.hb-emoji { font-size: 64px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); }
.hb-title { font-family: 'Fredoka One', cursive; font-size: 24px; color: #fff; text-shadow: 2px 3px 0 rgba(0,0,0,0.15); }
.hb-sub   { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.85); letter-spacing: 2px; text-transform: uppercase; }
.hero-sparkle {
  position: absolute; font-size: 20px; pointer-events: none;
  animation: sparkleSpin 8s linear infinite;
}
.hs1 { animation-delay:0s;   top:50%; left:50%; }
.hs2 { animation-delay:2s;   top:50%; left:50%; }
.hs3 { animation-delay:4s;   top:50%; left:50%; }
.hs4 { animation-delay:6s;   top:50%; left:50%; }

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 40px 20px 24px; min-height: auto; gap: 30px; }
  .hero-sub { max-width: 100%; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 16px 20px;
    gap: 24px;
  }

  .hero-title {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .hero-btns {
    width: 100%;
    gap: 10px;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 10px;
  }

  .features {
    padding: 42px 16px 54px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-sub {
    margin-bottom: 24px;
    font-size: 14px;
  }

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

  .feat-card {
    padding: 22px 18px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════
   FEATURE CARDS SECTION
═══════════════════════════════════════════════════════ */
.features {
  background: rgba(255,255,255,0.55);
  padding: 60px 24px 70px;
  position: relative; z-index: 1;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: 'Fredoka One', cursive; font-size: 30px; color: var(--red);
  margin-bottom: 8px; text-align: center;
}
.section-sub {
  font-size: 15px; font-weight: 700; color: #876957;
  text-align: center; margin-bottom: 36px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.feat-card {
  background: rgba(255,255,255,0.9); border-radius: 24px;
  padding: 28px 24px; text-decoration: none; color: var(--text);
  border: 1px solid rgba(255,216,160,0.9);
  box-shadow: 0 14px 34px rgba(0,0,0,0.06);
  transition: transform 0.26s, box-shadow 0.26s, border-color 0.26s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.feat-card:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 22px 44px rgba(0,0,0,0.10); border-color: var(--orange); }
.feat-icon { font-size: 40px; }
.feat-card h3 { font-family: 'Fredoka One', cursive; font-size: 20px; color: var(--red); }
.feat-card p  { font-size: 13px; font-weight: 700; color: #876957; line-height: 1.6; flex: 1; }
.feat-arrow { font-size: 20px; font-weight: 800; color: var(--orange); margin-top: 6px; transition: transform 0.2s; }
.feat-card:hover .feat-arrow { transform: translateX(5px); }
/* Card accent colours */
.feat-watch   { border-top: 3px solid var(--red); }
.feat-shorts  { border-top: 3px solid var(--blue); }
.feat-games   { border-top: 3px solid var(--purple); }
.feat-tasks   { border-top: 3px solid var(--green); }
.feat-hw      { border-top: 3px solid var(--orange); }
.feat-profile { border-top: 3px solid var(--pink); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #FFF8F1, #FFE8C8);
  border-top: 1px solid rgba(255,216,160,0.7);
  padding: 30px 24px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-brand { font-family: 'Fredoka One', cursive; font-size: 20px; color: var(--red); }
.footer-copy  { font-size: 13px; font-weight: 700; color: #B07040; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; font-weight: 800; color: #876957; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }
