/* ============================================================
   GAMEHUB — Home Page Styles
   ============================================================ */

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(79,110,247,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(123,79,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255,79,139,0.06) 0%, transparent 60%),
    linear-gradient(180deg, #08101f 0%, var(--bg-primary) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 80px 80px 60px;
  max-width: 620px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.3);
  border-radius: 30px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 1.5s infinite;
}

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 .white {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .accent-word { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.hero p {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 36px; font-weight: 400;
}

.hero-cta { display: flex; gap: 14px; align-items: center; }

.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  border: none;
  box-shadow: 0 8px 40px rgba(79,110,247,0.45);
  transition: all 0.3s; text-transform: uppercase;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 50px rgba(79,110,247,0.6); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  border: 1.5px solid var(--border);
  color: var(--text-muted); background: transparent;
  font-weight: 600; font-size: 15px; transition: all 0.3s;
}
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--text); }

.hero-stats { display: flex; gap: 40px; margin-top: 52px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Orbitron', monospace; font-size: 26px; font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* Hero floating icons */
.hero-chars {
  position: absolute; right: 0; bottom: 0; top: var(--nav-height);
  width: 55%; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.hero-chars-inner { position: relative; width: 100%; height: 100%; }
.char-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}
.char-blob-1 { width:400px;height:400px;background:var(--accent);top:20%;right:10%; }
.char-blob-2 { width:300px;height:300px;background:var(--accent2);top:35%;right:30%;animation-delay:-2s; }
.char-blob-3 { width:200px;height:200px;background:var(--accent3);top:15%;right:20%;animation-delay:-4s; }
.hero-icon {
  position: absolute; z-index: 2;
  filter: drop-shadow(0 0 30px rgba(79,110,247,0.5));
}

/* ── Categories Section ── */
.categories-section { background: var(--bg-secondary); padding: 70px 80px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover {
  border-color: rgba(79,110,247,0.4);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}
.category-card-img {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative;
}
.category-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,26,0.85) 0%, transparent 65%);
}

/* Banner image inside a category card (home page) */
.cat-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  transition: transform 0.4s ease;
}
.category-card:hover .cat-banner-img { transform: scale(1.06); }
.category-card-info {
  padding: 16px 18px;
}
.category-card-name {
  font-family: 'Orbitron', monospace;
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.category-card-count {
  font-size: 13px; color: var(--text-muted);
}

/* Category colour themes */
.cat-bg-0 { background: linear-gradient(135deg, #1a0d0d, #2a1500); }
.cat-bg-1 { background: linear-gradient(135deg, #0a0020, #1a0033); }
.cat-bg-2 { background: linear-gradient(135deg, #0d2a1a, #0f331a); }
.cat-bg-3 { background: linear-gradient(135deg, #001a1a, #002a2a); }
.cat-bg-4 { background: linear-gradient(135deg, #1a0d2a, #0d0d33); }
.cat-bg-5 { background: linear-gradient(135deg, #1a0d0d, #2a1a1a); }

/* ── Most Played Games ── */
.most-played-section { background: var(--bg-primary); padding: 70px 80px; }

.games-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.games-scroll::-webkit-scrollbar { height: 4px; }
.games-scroll::-webkit-scrollbar-track { background: transparent; }
.games-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.game-card {
  flex-shrink: 0; width: 150px; border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border2);
  text-decoration: none; color: inherit;
  display: block;
}
.game-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--glow2); }

.game-card-img {
  width: 100%; aspect-ratio: 3/4;
  background: var(--bg-card); position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden;
}
.game-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; position: absolute; inset: 0;
}
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,26,0.9) 0%, transparent 50%);
}
.game-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 10px 10px;
}
.game-card-name {
  font-size: 12px; font-weight: 700; margin-bottom: 4px;
  font-family: 'Exo 2', sans-serif;
}
.game-plays {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}

/* ── Subscribe card ── */
.subscribe-card {
  background: linear-gradient(145deg, rgba(79,110,247,0.1), rgba(123,79,255,0.08));
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.sub-heart {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent3), #ff8f6b);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 16px;
}
.sub-title {
  font-family: 'Orbitron', monospace;
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}
.sub-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.sub-input {
  width: 100%; padding: 11px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); font-family: 'Rajdhani', sans-serif; font-size: 14px;
  outline: none; margin-bottom: 10px; transition: all 0.25s;
}
.sub-input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.sub-btn {
  width: 100%; padding: 11px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; transition: all 0.25s;
}
.sub-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,110,247,0.4); }

/* Card color themes */
.gc-default  { background: linear-gradient(135deg,#111830,#0f1525); }
.gc-halo     { background: linear-gradient(135deg,#1a2a4a,#0d1a33); }
.gc-fortnite { background: linear-gradient(135deg,#1a0d2e,#0f1a33); }
.gc-dead     { background: linear-gradient(135deg,#1a0d0d,#2a1a1a); }
.gc-ori      { background: linear-gradient(135deg,#0d2a1a,#0f331a); }
.gc-val      { background: linear-gradient(135deg,#1a0d0d,#2a1500); }
.gc-skull    { background: linear-gradient(135deg,#1a0d2a,#0d0d33); }
