/* shared/styles.css */

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6fb;
  color: #1c1c28;
}
a { color: inherit; }

/* ---------- Page shell: persistent sidebar + main content ---------- */
.page-shell { display: flex; align-items: flex-start; min-height: 100vh; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #171a2b;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}
.sidebar-brand {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 0 24px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2a2e45;
}
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav--legal { margin-top: auto; padding-top: 20px; border-top: 1px solid #2a2e45; }
.sidebar-link {
  display: block;
  padding: 11px 24px;
  color: #b8bad0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.sidebar-link:hover { background: #21243a; color: #fff; }
.sidebar-link--active { background: #21243a; color: #fff; border-left: 3px solid #e8552e; padding-left: 21px; }

.page-main { flex: 1; min-width: 0; }

/* ---------- Homepage intro block ---------- */
.homepage-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 0; }
.intro-block { margin-bottom: 8px; }
.intro-heading { font-size: 1.9rem; font-weight: 800; margin-bottom: 16px; color: #1c1c28; }
.intro-block p { line-height: 1.65; color: #4a4a68; max-width: 80ch; margin-bottom: 12px; }

/* ---------- Homepage: box-art grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  padding: 0 0 56px;
}
.game-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tile-box-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.game-tile:hover .tile-box-art { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 20, 40, 0.18); }
.tile-name { font-size: 1.05rem; font-weight: 700; margin-top: 10px; color: #1c1c28; }
.tile-stat-line { font-size: 0.9rem; color: #6a6a82; margin-top: 4px; }
.tile-star { color: #e8962a; }
.tile-ratings-count { color: #9494a8; }

/* ---------- Shared badge ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 4px;
}
.badge-live { background: #dcfbe4; color: #0f8a3f; }
.badge-coming-soon { background: #fff0d6; color: #b1690a; }

/* ---------- Store page ---------- */
.store-page { max-width: 960px; margin: 0 auto; padding: 24px 24px 56px; }

.breadcrumb { font-size: 0.85rem; color: #9494a8; margin-bottom: 16px; }
.breadcrumb a { color: #d64926; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.game-title { font-size: 2rem; font-weight: 800; margin-bottom: 20px; color: #1c1c28; }

.title-meta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.box-art {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.15);
  flex-shrink: 0;
}

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.82rem; color: #9494a8; }
.stat-value { font-size: 1.15rem; font-weight: 700; color: #1c1c28; }
.stat-value--star { color: #e8962a; }

/* ---------- Description block (tags, blurb, CTA) ---------- */
.description-block { margin-bottom: 40px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: #eef0f7;
  color: #4a4a68;
}
.store-description { line-height: 1.65; color: #33334d; max-width: 68ch; margin-bottom: 24px; }

.cta-row { margin-bottom: 12px; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  background: #e8552e;
  color: #fff;
  cursor: pointer;
}
.download-icon { font-size: 1.1rem; }
.download-btn:hover { background: #cf461f; }
.download-btn--disabled {
  background: #e2e4ec;
  color: #85869c;
  cursor: not-allowed;
}
.download-btn--disabled:hover { background: #e2e4ec; }
.file-info { font-size: 0.88rem; color: #9494a8; }

/* ---------- Sections (screenshots, gameplay, features, etc.) ---------- */
.store-section { margin-bottom: 40px; }
.section-heading-wrap { margin-bottom: 16px; }
.section-accent-bar { width: 60px; height: 5px; border-radius: 3px; background: #e8552e; margin-bottom: 10px; }
.section-heading { font-size: 1.3rem; font-weight: 800; color: #1c1c28; }

/* ---------- Screenshot carousel ---------- */
.carousel { display: flex; align-items: center; gap: 10px; }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.carousel-shot {
  flex-shrink: 0;
  width: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(20, 20, 40, 0.12);
}
.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e6e8f0;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  color: #4a4a68;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 20, 40, 0.1);
}
.carousel-arrow:hover { background: #f4f6fb; }

/* ---------- Gameplay paragraphs ---------- */
.gameplay-paragraph { line-height: 1.65; color: #33334d; max-width: 72ch; margin-bottom: 14px; }

/* ---------- Feature list (simple bulleted, GameTop-style) ---------- */
.feature-list-simple {
  list-style: disc;
  padding-left: 22px;
  color: #33334d;
  line-height: 1.9;
}

/* ---------- PC System Requirements ---------- */
.sysreq-os { color: #33334d; margin-bottom: 12px; }
.sysreq-table { border-top: 1px solid #e6e8f0; }
.sysreq-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e6e8f0;
  max-width: 420px;
}
.sysreq-row span:first-child { color: #6a6a82; }
.sysreq-row span:last-child { font-weight: 600; color: #1c1c28; }

/* ---------- Rate widget ---------- */
.rate-stars { display: flex; gap: 6px; font-size: 1.8rem; line-height: 1; color: #c8c8d8; }
.rate-star { cursor: pointer; }
.rate-star:hover { color: #e8962a; }

/* ---------- More Games strip ---------- */
.more-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.more-games-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.more-games-box-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.12);
  transition: transform 0.12s ease;
}
.more-games-tile:hover .more-games-box-art { transform: translateY(-2px); }
.more-games-name { font-size: 0.9rem; font-weight: 600; color: #1c1c28; text-align: center; }

/* ---------- Static info pages (About, FAQ, Contact, Privacy, Terms) ---------- */
.info-page { max-width: 760px; margin: 0 auto; padding: 32px 24px 56px; }
.info-page h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 20px; color: #1c1c28; }
.info-page h2 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 10px; color: #1c1c28; }
.info-page p { line-height: 1.65; color: #33334d; margin-bottom: 14px; max-width: 72ch; }
.info-page a { color: #d64926; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 760px) {
  .page-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 16px;
    gap: 4px;
  }
  .sidebar-brand { padding: 0 12px 0 0; margin-bottom: 0; border-bottom: none; }
  .sidebar-nav, .sidebar-nav--legal { flex-direction: row; flex-wrap: wrap; margin-top: 0; border-top: none; padding-top: 0; }
  .sidebar-link, .sidebar-link--active { padding: 8px 10px; border-left: none; }
}
@media (max-width: 480px) {
  .homepage-wrap { padding: 24px 16px 0; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 0 40px; }
  .store-page { padding: 16px 16px 40px; }
  .title-meta { gap: 16px; }
  .box-art { width: 88px; height: 88px; }
  .carousel-shot { width: 260px; }
  .more-games-grid { grid-template-columns: repeat(3, 1fr); }
}
