/* ═══════════════════════════════════════════
   DIGEX Studio — Global Stylesheet
   Theme: Deep Space · Purple/Violet · Bebas Neue
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg:      #060d1a;
  --bg2:     #02040f;
  --panel:   #0f1724;
  --card:    rgba(255,255,255,.04);
  --border:  rgba(167,139,250,.15);
  --accent:  #a78bfa;
  --accent2: #60a5fa;
  --gold:    #f59e0b;
  --muted:   #5a6a80;
  --text:    #e6eef8;
  --pill:    rgba(167,139,250,.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide scrollbar but keep scroll */
body { -ms-overflow-style: none; scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }

/* Thin purple scrollbar for scrollable inner elements */
*::-webkit-scrollbar { width: 5px; height: 6px; }
*::-webkit-scrollbar-track { background: var(--bg2); }
*::-webkit-scrollbar-thumb { background: rgba(167,139,250,.35); border-radius: 99px; }

/* ── GRADIENT TEXT UTILITY ── */
.gradient-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 13, 26, 0.8);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(167,139,250,.1);
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(167,139,250,.5));
}

.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: .08em;
  color: var(--text);
}

.brand-text span {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(167,139,250,.6);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: rgba(230,238,248,.75);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color .25s;
  letter-spacing: .02em;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s ease;
  border-radius: 99px;
}

.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ════════════════════════════════
   GENRE BAR
════════════════════════════════ */
.genre-wrap {
  padding: 12px 0;
  border-bottom: 1px solid rgba(167,139,250,.08);
  background: rgba(2,4,15,.5);
}

.genre-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 18px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: rgba(230,238,248,.7);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(167,139,250,.12);
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  letter-spacing: .02em;
}

.genre-pill:hover {
  background: rgba(167,139,250,.12);
  color: var(--accent);
  border-color: rgba(167,139,250,.35);
}

.genre-pill.active {
  background: linear-gradient(90deg, rgba(167,139,250,.25), rgba(96,165,250,.1));
  color: var(--accent);
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 14px rgba(167,139,250,.25);
}

/* ════════════════════════════════
   GAME GRID
════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 18px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
}

/* CARD */
.card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(167,139,250,.4);
  box-shadow: 0 10px 30px rgba(120,80,255,.2);
}

.thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .thumb img { transform: scale(1.1); }

/* Featured card */
.card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.card.featured .title {
  font-size: 18px;
  font-weight: 700;
}

/* Card overlay info */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(6,13,26,.92), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.card:hover .card-info { opacity: 1; }

.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1.2;
}

/* Badge */
.badge {
  position: absolute;
  top: 7px; right: 7px;
  background: linear-gradient(90deg, #f59e0b, #ff7b00);
  color: #000;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ════════════════════════════════
   GAME DETAIL PAGE
════════════════════════════════ */
main.detail-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.game-info {
  background: var(--panel);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(0,0,0,.4);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  gap: 16px;
}

.game-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-header img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--border);
  box-shadow: 0 0 20px rgba(167,139,250,.2);
}

.game-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: .06em;
  color: #fff;
  margin: 0;
}

.game-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Screenshots */
.screenshots {
  position: relative;
  margin: 16px 0 24px;
}

.ss-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.ss-wrapper::-webkit-scrollbar { display: none; }

.screenshot-item {
  flex: 0 0 calc((100% - 20px) / 3);
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.screenshot-item:hover img { transform: scale(1.05); }

.screenshot-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(6,13,26,.75);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  z-index: 10;
  transition: background .2s;
}

.screenshot-nav:hover { background: rgba(167,139,250,.2); }
.screenshot-prev { left: 0; }
.screenshot-next { right: 0; }

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  cursor: pointer;
  transition: transform .25s ease;
}

.store-badge:hover { transform: scale(1.05); }

.store-badge img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Extra links */
.extra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.extra-links a {
  background: rgba(167,139,250,.08);
  color: var(--accent);
  border: 1px solid rgba(167,139,250,.3);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  transition: all .2s;
}

.extra-links a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(167,139,250,.4);
}

/* Similar Games */
.similar-games {
  background: var(--panel);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(0,0,0,.4);
  height: fit-content;
}

.similar-games h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 18px;
}

#similarList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}

.similar-item {
  text-align: center;
  cursor: pointer;
  transition: transform .2s;
}

.similar-item:hover { transform: scale(1.06); }

.similar-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}

.similar-item:hover img {
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 6px 20px rgba(120,80,255,.18);
}

.similar-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ════════════════════════════════
   STORE BUTTONS (legacy)
════════════════════════════════ */
.store-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  letter-spacing: .03em;
}

.store-btn:hover { transform: scale(1.05); }

.playstore {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(52,211,153,.3);
}

.appstore {
  background: linear-gradient(135deg, #6b7280, #1f2937);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}

.playstore:hover { box-shadow: 0 6px 24px rgba(52,211,153,.5); }
.appstore:hover  { box-shadow: 0 6px 24px rgba(0,0,0,.5); }

/* ════════════════════════════════
   BUTTONS (shared)
════════════════════════════════ */
.btn {
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  border: 0;
  transition: all .25s ease;
  font-size: .9rem;
  letter-spacing: .04em;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(167,139,250,.25);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(167,139,250,.3);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 60px;
}

.footer p { font-weight: 600; letter-spacing: .02em; }

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  margin: 0 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--accent2);
  text-decoration: underline;
}

/* ════════════════════════════════
   NAV RIGHT
════════════════════════════════ */
.nav-right {
  display: flex;
  gap: 12px;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card.featured {
    grid-column: span 2;
  }
  main.detail-container {
    grid-template-columns: 1fr;
  }
  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 100px;
    gap: 10px;
  }
  .card.featured {
    grid-column: span 2;
    grid-row: span 2;
  }
  .screenshot-item {
    flex: 0 0 80%;
  }
  .store-buttons {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}.brand img {
  height: 50px;
  animation: blueGlow 2s infinite alternate;
}@keyframes blueGlow {
  from {
    filter: drop-shadow(0 0 5px #00bfff);
  }
  to {
    filter: drop-shadow(0 0 20px #00bfff);
  }
}