/* ============================================================
   GAMEHUB — Responsive (Tablet ≤ 900px, Mobile ≤ 600px)
   ============================================================ */

/* ─── TABLET (≤ 900px) ─── */
@media (max-width: 900px) {

  /* Navbar */
  nav#mainNav { padding: 0 24px; }
  .nav-links, .nav-search, .nav-btns { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }

  /* Sections */
  .section { padding: 50px 32px; }
  .categories-section { padding: 50px 32px; }
  .most-played-section { padding: 50px 32px; }
  footer { padding: 40px 32px 24px; }

  /* Footer grid */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Hero */
  .hero-content { padding: 60px 32px 40px; max-width: 100%; }
  .hero h1      { font-size: 34px; }
  .hero-chars   { display: none; }
  .hero-stats   { gap: 24px; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr 1fr; }

  /* Most Played */
  .game-card { width: 130px; }

  /* Games page */
  .games-hero    { padding: 50px 32px 36px; }
  .games-content { padding: 0 32px 60px; }
  .games-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* Category page banner — tablet: fixed height + cover crop */
  .category-page-banner  { height: 260px; }
  .cat-page-banner-img   { height: 100%; object-fit: cover; object-position: center; }
  .cat-page-banner-text  { left: 32px; right: 32px; bottom: 22px; }

  /* Login */
  .login-art { display: none; }
  .login-form-panel { width: 100%; padding: 40px 32px; }
}

/* ─── MOBILE (≤ 600px) ─── */
@media (max-width: 600px) {

  /* Typography */
  .hero h1       { font-size: 26px; }
  .hero p        { font-size: 15px; }
  .section-title { font-size: 18px; }
  .games-hero h1 { font-size: 24px; }
  .login-title   { font-size: 22px; }

  /* Sections */
  .section  { padding: 36px 18px; }
  .categories-section { padding: 36px 18px; }
  .most-played-section { padding: 36px 18px; }
  footer    { padding: 32px 18px 20px; }

  /* Hero stats stacked */
  .hero-stats { flex-direction: column; gap: 14px; margin-top: 32px; }
  .hero-cta   { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-hero, .btn-hero-ghost { width: 100%; justify-content: center; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr; }

  /* Trending */
  .games-scroll { gap: 10px; }
  .game-card    { width: 110px; }

  /* Games grid */
  .games-hero    { padding: 36px 18px; }
  .games-content { padding: 0 18px 40px; }
  .games-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .games-filters { gap: 8px; }

  /* Category page banner — mobile: fixed height + cover crop */
  .category-page-banner  { height: 160px; }
  .cat-page-banner-img   { height: 100%; object-fit: cover; object-position: center; }
  .cat-page-banner-text  { left: 18px; right: 18px; bottom: 14px; }
  .cat-page-banner-label { font-size: 9px; letter-spacing: 2px; margin-bottom: 4px; }
  .cat-page-banner-title { font-size: 16px; }

  /* Footer */
  .footer-top    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Login */
  .login-form-panel { padding: 30px 18px; }

  /* Toast */
  .toast { right: 12px; left: 12px; bottom: 16px; }

  /* Nav */
  nav#mainNav { padding: 0 18px; }
  .nav-drawer { padding: 16px 18px 22px; }
}
