/* ==========================================================================
   Easygame.ir — Main Modern Theme
   Matching Mockup Design With High Precision
   ========================================================================== */

/* --- Fonts Setup --- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Theme Variables --- */
:root {
  --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Mockup Palette */
  --bg-dark: #051223;
  --bg-darker: #030b17;
  --bg-header: rgba(5, 18, 35, 0.92);
  --bg-card: #09172d;
  --bg-card-glass: rgba(9, 23, 45, 0.72);
  --bg-card-hover: #0e2242;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.5);
  
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  
  --text-white: #ffffff;
  --text-slate: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #071120;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  transition: var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brand-tld {
  color: var(--accent-gold);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-slate);
  padding: 6px 2px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
}

/* Active Nav Indicator matching mockup (yellow underline bar on "خانه") */
.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Pill */
.search-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(9, 23, 45, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  width: 200px;
  height: 38px;
  transition: var(--transition-smooth);
}

.search-pill:focus-within {
  border-color: var(--accent-gold);
  width: 250px;
  background: #081a34;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  margin-left: 8px;
  flex-shrink: 0;
}

.search-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.search-pill input::placeholder {
  color: var(--text-muted);
}

.clear-btn {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 2px 4px;
  border-radius: 50%;
}

.clear-btn:hover {
  color: var(--text-white);
}

/* User Profile & Menu Buttons */
.user-btn, .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 23, 45, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  transition: var(--transition-fast);
}

.user-btn svg, .menu-btn svg {
  width: 19px;
  height: 19px;
}

.user-btn:hover, .menu-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-gold);
  background: #0d2243;
}

.menu-btn {
  display: none;
}

/* ==========================================================================
   Hero Section with Panoramic Artwork Banner
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 360px;
  background-image: url('_assets/theme/hero_bg.jpg?v=2.0.1');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 50px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Darken center and fade into bottom background */
  background: radial-gradient(circle at center, rgba(5, 18, 35, 0.6) 0%, rgba(5, 18, 35, 0.85) 60%, var(--bg-dark) 100%),
              linear-gradient(180deg, rgba(5, 18, 35, 0.35) 0%, rgba(5, 18, 35, 0.6) 70%, var(--bg-dark) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-center-box {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-emblem {
  width: 58px;
  height: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.6));
  animation: floatEmblem 3s ease-in-out infinite alternate;
}

@keyframes floatEmblem {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.hero-tld {
  color: var(--accent-gold);
}

.hero-sub {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-slate);
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-action-wrap {
  margin-top: 22px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 34px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.38);
  transition: var(--transition-smooth);
}

.hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.55);
}

.cta-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero-cta-btn:hover .cta-arrow {
  transform: translateX(-4px);
}

/* ==========================================================================
   Categories Section (8 Cards Strip)
   ========================================================================== */
.categories-section {
  margin-top: -15px;
  position: relative;
  z-index: 10;
  margin-bottom: 35px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.cat-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 6px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.cat-card.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.cat-card:hover .cat-icon-img {
  transform: scale(1.1);
}

.cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.cat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Popular Games Section ("بازی‌های محبوب 🔥")
   ========================================================================== */
.popular-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flame-icon {
  font-size: 1.35rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition-fast);
}

.view-all-link:hover {
  color: var(--accent-gold);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pop-card {
  position: relative;
  height: 155px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  background: var(--bg-card);
}

.pop-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.pop-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.pop-card:hover .pop-thumb {
  transform: scale(1.08);
}

.pop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 18, 35, 0.02) 0%, rgba(5, 18, 35, 0.35) 45%, rgba(5, 18, 35, 0.95) 90%, var(--bg-dark) 100%);
  pointer-events: none;
}

.pop-content {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.pop-meta {
  flex: 1;
  padding-left: 8px;
}

.pop-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.pop-sub {
  font-size: 0.74rem;
  color: var(--text-slate);
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.pop-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(5, 18, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.pop-action-btn svg {
  width: 15px;
  height: 15px;
}

.pop-card:hover .pop-action-btn {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--text-dark);
  transform: scale(1.08);
}

/* ==========================================================================
   All Games Catalog Section
   ========================================================================== */
.all-games-section {
  padding-top: 20px;
  margin-bottom: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.all-games-header {
  margin-bottom: 24px;
}

.all-games-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.catalog-badge {
  font-size: 0.8rem;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cat-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cat-pill:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
}

.cat-pill.active {
  background: var(--accent-gold);
  color: var(--text-dark);
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.game-thumb {
  height: 125px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-icon-big {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-icon-big {
  transform: scale(1.14);
}

.fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.fav-btn:hover {
  transform: scale(1.15);
}

.game-badges {
  position: absolute;
  top: 10px;
  right: 10px;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-white);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
}

.game-category-label {
  font-size: 0.72rem;
  color: var(--accent-gold);
}

.game-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0d2243;
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.play-btn:hover {
  background: var(--accent-gold);
  color: var(--text-dark);
  border-color: var(--accent-gold);
}

.open-tab-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #0d2243;
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  transition: var(--transition-fast);
}

.open-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-gold);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.btn-reset {
  margin-top: 14px;
  padding: 8px 20px;
  background: var(--accent-gold);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* ==========================================================================
   Modals (Game Player, About, Contact, User)
   ========================================================================== */
.game-modal, .info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-modal.active, .info-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 11, 23, 0.88);
  backdrop-filter: blur(12px);
}

.modal-window {
  position: relative;
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #08172c;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-game-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.6rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: #0d2243;
  border: 1px solid var(--border-subtle);
  color: var(--text-slate);
  transition: var(--transition-fast);
}

.ctrl-btn:hover {
  color: var(--text-white);
  border-color: var(--accent-gold);
}

.close-btn {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.modal-body {
  flex: 1;
  background: #000000;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Info Cards (About, Contact, User) */
.info-modal-card {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.close-info-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.close-info-btn:hover {
  color: var(--text-white);
}

.info-emblem {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.info-modal-body p {
  color: var(--text-slate);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.contact-val {
  color: var(--accent-gold);
  font-weight: 600;
  direction: ltr;
}

.text-center {
  text-align: center;
}

.profile-avatar {
  font-size: 3.2rem;
  margin-bottom: 8px;
}

.profile-status {
  font-size: 0.82rem;
  color: #10b981;
  margin-top: 4px;
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.p-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.p-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #030a14;
  border-top: 1px solid var(--border-subtle);
  padding: 45px 0 25px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 35px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-slate);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1080px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: -10px 20px 30px rgba(0, 0, 0, 0.6);
    transition: right 0.3s ease;
  }
  .nav-menu.active {
    right: 0;
  }
  .search-pill {
    width: 140px;
  }
  .search-pill:focus-within {
    width: 180px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 1.2rem;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-card {
    padding: 10px 4px;
  }
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

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