/* =========================
   Reset / Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #121212 0%, #0b0b0b 100%);
  color: #eaeaea;
  line-height: 1.5;
}

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

/* =========================
   Layout
   ========================= */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #0f0f0f;
  border-right: 1px solid #1f1f1f;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.main {
  margin-left: 240px;
  padding: 32px;
}

.section {
  margin-bottom: 64px;
}

/* =========================
   Sidebar
   ========================= */
.brand__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav__link {
  font-size: 0.95rem;
  color: #bdbdbd;
}

.nav__link:hover {
  color: #ffffff;
}

.foot {
  margin-top: auto;
  font-size: 0.75rem;
  color: #777;
}

/* =========================
   Topbar (mobile)
   ========================= */
.topbar {
  display: none;
  background: #0f0f0f;
  border-bottom: 1px solid #1f1f1f;
  padding: 12px 16px;
}

.topbar__title {
  font-weight: 600;
}

.topbar__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* =========================
   Typography
   ========================= */
.h1 {
  margin: 12px 0 8px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.h3 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.muted {
  color: #a0a0a0;
  max-width: 720px;
}

/* =========================
   Chips
   ========================= */
.chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #1e1e1e;
  color: #bdbdbd;
}

/* =========================
   Buttons (BACK TO ORIGINAL SIZE)
   ========================= */
.btn {
  height: 32px;              /* ← original height */
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 0.82rem;
  border: 1px solid #2a2a2a;
  background: #161616;
  color: #d0d0d0;
}

.btn:hover {
  background: #1d1d1d;
}

/* =========================
   Cards
   ========================= */
.card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 12px;
}

.card--hero {
  margin-top: 24px;
  padding: 24px;
}

.card__footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #242424;
}

.card__footer--actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Grid
   ========================= */
.grid {
  display: grid;
  gap: 20px;
}

.grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.col { min-width: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* =========================
   Lists
   ========================= */
.list {
  padding-left: 18px;
  margin: 0;
}

.list li {
  margin-bottom: 6px;
  color: #cfcfcf;
}

/* =========================
   Screenshot placeholder
   ========================= */
.shot {
  width: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #1d1d1d, #101010);
  border-radius: 10px;
  border: 1px dashed #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.85rem;
}

/* =========================
   Google Play badge (MATCHES 32px BUTTON)
   ========================= */
.store-badge {
  display: inline-flex;
  align-items: center;
}

.store-badge img {
  height: 32px;              /* same layout height as .btn */
  width: auto;
  display: block;

  /* optical balance for Google badge padding */
  transform: scale(0.85);
  transform-origin: left center;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 420px) {
  .btn {
    height: 30px;
    font-size: 0.78rem;
  }

  .store-badge img {
    height: 30px;
    transform: scale(0.85);
  }

  .chip {
    font-size: 0.65rem;
  }
}
