/* Mobile-first responsive breakpoints */
/* sm: 480px | md: 768px | lg: 1024px | xl: 1280px */

/* === BASE MOBILE (< 480px) === */
.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.section {
  padding: 3rem 0;
}

/* === SMALL (480px+) === */
@media (min-width: 480px) {
  :root {
    --container-pad: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MEDIUM (768px+) === */
@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }
}

/* === LARGE (1024px+) === */
@media (min-width: 1024px) {
  :root {
    --container-pad: 2.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === EXTRA LARGE (1280px+) === */
@media (min-width: 1280px) {
  :root {
    --container-pad: 3rem;
  }
}

/* === GAME GRID SPECIFIC === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === HERO LAYOUT === */
.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-layout {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-content {
    flex: 1;
    max-width: 55%;
  }

  .hero-visual {
    flex: 1;
    max-width: 42%;
  }

  .hero-cta-group {
    justify-content: flex-start !important;
  }
}

/* === STATS BAR === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === STEPS FLOW === */
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.steps-connector {
  display: none;
}

@media (min-width: 768px) {
  .steps-flow {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }

  .steps-connector {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 100px;
  }
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === SCREENSHOTS === */
.screenshots-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 4px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: 2px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 2px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 220px;
}

@media (min-width: 768px) {
  .screenshot-item {
    width: 260px;
  }
}

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
}

/* === DOWNLOAD PAGE === */
.install-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .install-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .install-steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* === ABOUT === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === GAME REDIRECT === */
.game-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .game-hero-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .related-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === APP DETAILS TABLE === */
.app-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.app-details-table tr {
  border-bottom: 1px solid var(--color-border);
}

.app-details-table td {
  padding: 0.9rem 1rem;
}

.app-details-table td:first-child {
  color: var(--color-muted);
  font-weight: 500;
  width: 40%;
}

.app-details-table td:last-child {
  color: var(--color-text);
  font-weight: 600;
}

/* === PRINT === */
@media print {
  #header, #footer, .btn, .back-to-top {
    display: none !important;
  }
}
