/*
Theme Name: YonoGameAdda.com Theme
Theme URI: https://yonogameadda.com
Author: YonoGameAdda Team
Author URI: https://yonogameadda.com
Description: A high-performance, premium gaming portal theme for Yono, Rummy, Casino, and APK download sites. Custom Post Type: Games. Telegram CTA. Fully responsive desktop/tablet/mobile. WordPress Customizer support.
Version: 2.3.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yono-game-adda
Tags: gaming, app-store, custom-colors, custom-logo, featured-images, theme-options, responsive
*/

/* ============================================================
   ROOT / VARIABLES
   ============================================================ */
:root {
  --primary:       #6C3BFF;
  --primary-dark:  #5930E5;
  --accent:        #19C15F;
  --accent-dark:   #16AB54;
  --telegram:      #0088cc;
  --telegram-dark: #0077bb;
  --bg:            #F2F4F7;
  --card-bg:       #FFFFFF;
  --border:        #E8E8E8;
  --dark:          #111111;
  --dark-2:        #181818;
  --text-muted:    #6B7280;
  --red:           #E11D48;
  --amber:         #D97706;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--dark);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .container { padding-left: 32px; padding-right: 32px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--dark);
  border-bottom: 1px solid #1f1f1f;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 24px; height: 64px; }
}

@media (min-width: 1024px) {
  .header-inner { padding: 0 32px; }
}

/* Brand / Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
  border: 1.5px solid rgba(212,175,55,0.5);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-logo-img { width: 44px; height: 44px; }
}

.site-title-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

@media (min-width: 640px) {
  .site-title-text { font-size: 1.25rem; }
}

/* WordPress Custom Logo overrides */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Telegram Button */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--telegram);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-telegram:hover { background-color: var(--telegram-dark); }

@media (min-width: 640px) {
  .btn-telegram { font-size: 0.72rem; padding: 6px 11px; }
}

/* Hamburger toggle */
.menu-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.menu-toggle:hover { background: rgba(255,255,255,0.2); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  background: var(--dark-2);
  border-top: 1px solid #222;
  padding: 12px 16px;
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.15s;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-menu a.active-link { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-menu a.telegram-link { background: var(--telegram); color: #fff; font-weight: 800; }

/* ============================================================
   HOMEPAGE: GAME GRID
   ============================================================ */
.front-page-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 16px 32px;
}

@media (min-width: 640px) {
  .front-page-main { padding: 20px 24px 40px; }
}

@media (min-width: 1024px) {
  .front-page-main { padding: 24px 32px 48px; }
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 580px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

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

@media (min-width: 1280px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ============================================================
   GAME CARD
   ============================================================ */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Desktop: premium card treatment */
@media (min-width: 1024px) {
  .game-card {
    padding: 18px 20px;
    border-radius: 16px;
    gap: 20px;
    min-height: 96px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
  .game-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.11);
  }
}

.game-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .game-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border-width: 1.5px;
  }
}

.game-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(108,59,255,0.25);
}

@media (min-width: 1024px) {
  .game-icon-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
}

.game-card-info {
  min-width: 0;
  flex: 1;
}

.game-card-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

@media (min-width: 640px) {
  .game-card-name { font-size: 0.95rem; }
}

@media (min-width: 1024px) {
  .game-card-name { font-size: 1rem; margin-bottom: 8px; }
}

.game-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.game-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .game-card-meta { gap: 5px; }
  .game-meta-row { font-size: 0.78rem; gap: 6px; }
}

.meta-label { color: inherit; font-weight:700; }
.game-meta-row.bonus-row{color:#16A34A;}
.game-meta-row.withdraw-row{color:#F97316;}
.meta-bonus { color: #16A34A; font-weight: 800; }
.meta-withdraw { color: #F97316; font-weight: 800; }

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(25,193,95,0.3);
  min-width: 110px;
}

.btn-download:hover { background-color: var(--accent-dark); transform: scale(1.03); }
.btn-download:active { transform: scale(0.98); }

@media (min-width: 640px) {
  .btn-download { font-size: 0.8rem; padding: 9px 16px; min-width: 118px; }
}

@media (min-width: 1024px) {
  .btn-download {
    font-size: 0.85rem;
    padding: 11px 22px;
    min-width: 130px;
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(25,193,95,0.32);
  }
}

/* ============================================================
   SEO TEXT SECTION
   ============================================================ */
.seo-section {
  margin-top: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.seo-section h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 10px 0;
}

@media (min-width: 640px) {
  .seo-section h2 { font-size: 1.25rem; }
  .seo-section { padding: 24px; }
}

.seo-section p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   SINGLE GAME PAGE
   ============================================================ */
.single-game-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

@media (min-width: 640px) {
  .single-game-main { padding: 28px 24px 56px; }
}

.game-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Hero Section */
.game-detail-hero {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 640px) {
  .game-detail-hero {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 28px 32px;
    gap: 24px;
  }
}

.game-detail-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.game-detail-icon-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(108,59,255,0.3);
}

.game-detail-info { flex: 1; min-width: 0; }

.game-detail-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .game-detail-title { font-size: 1.75rem; }
}

.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .game-badges { justify-content: flex-start; }
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-bonus { background: rgba(22,163,74,0.1); color: #16A34A; }
.badge-withdraw { background: rgba(249,115,22,0.1); color: #F97316; }
.badge-rating { background: rgba(217,119,6,0.1); color: #D97706; }
.badge-version { background: rgba(108,59,255,0.1); color: var(--primary); }

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--red) 0%, #f43f5e 50%, var(--amber) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(225,29,72,0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-download-hero { width: auto; font-size: 1rem; padding: 13px 28px; }
}

.btn-download-hero:hover { filter: brightness(1.08); }
.btn-download-hero:active { transform: scale(0.98); }

/* Game Details Info Table */
.game-info-table {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .game-info-table { grid-template-columns: repeat(3, 1fr); padding: 24px 32px; gap: 18px; }
}

.info-item {}

.info-item-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.info-item-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--dark);
}

/* Game Description */
.game-description {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .game-description { padding: 24px 32px; }
}

.game-description h2 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.game-description .content {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.75;
}

.game-description .content p { margin: 0 0 12px 0; }
.game-description .content p:last-child { margin-bottom: 0; }

/* Screenshots */
.game-screenshots {
  padding: 20px 24px;
}

@media (min-width: 640px) {
  .game-screenshots { padding: 24px 32px; }
}

.game-screenshots h2 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 14px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

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

.screenshot-img {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 9/16;
  border: 1px solid var(--border);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.page-content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

@media (min-width: 640px) {
  .page-content-card { padding: 32px 40px; }
}

.page-content-card h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 16px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.page-content-card .prose {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.8;
}

.page-content-card .prose h2 { font-size: 1.2rem; font-weight: 800; margin-top: 1.5em; margin-bottom: 0.5em; }
.page-content-card .prose h3 { font-size: 1rem; font-weight: 700; margin-top: 1.2em; margin-bottom: 0.4em; }
.page-content-card .prose p { margin: 0 0 1em 0; }
.page-content-card .prose ul { margin: 0 0 1em 1.5em; }
.page-content-card .prose li { margin-bottom: 0.3em; }
.page-content-card .prose a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 16px;
  text-align: center;
}

.not-found-main h1 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
  line-height: 1;
}

.not-found-main h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 12px 0 8px;
}

.not-found-main p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.btn-home {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-home:hover { background: var(--primary-dark); }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
.archive-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.archive-main h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 20px;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.search-main h1 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid #1a1a1a;
  color: #9ca3af;
  font-size: 0.75rem;
  padding: 28px 16px;
  margin-top: auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 14px;
}

.footer-links a { color: #d1d5db; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-sep { color: #374151; }

.footer-copy {
  font-size: 0.7rem;
  color: #6b7280;
  padding-top: 12px;
  border-top: 1px solid #1f1f1f;
}

/* ============================================================
   ADMIN METABOX STYLES
   ============================================================ */
.yono-metabox-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 6px 0;
}

.yono-metabox-wrap .field-full { grid-column: 1 / -1; }

.yono-field label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #1d2327;
  margin-bottom: 5px;
}

.yono-field input[type="text"],
.yono-field input[type="url"],
.yono-field input[type="number"],
.yono-field select,
.yono-field textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 13px;
  color: #2c3338;
}

.yono-field textarea { resize: vertical; min-height: 80px; }

.yono-screenshots-notice {
  font-size: 11px;
  color: #646970;
  margin-top: 4px;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* Pagination */
.navigation .nav-links { display: flex; justify-content: center; gap: 6px; padding: 24px 0; }
.navigation .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--dark);
  transition: background 0.15s, color 0.15s;
}
.navigation .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.navigation .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.download-btn,.game-card .download-btn{min-width:120px;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;}

/* ============================================================
   PROMOTED GAMES SECTION
   ============================================================ */

.promoted-section {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a0a3c 0%, #0d1b2e 100%);
  border: 1px solid rgba(108,59,255,0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(108,59,255,0.15);
}

@media (min-width: 640px) {
  .promoted-section { padding: 20px 22px; margin-bottom: 24px; }
}

@media (min-width: 1024px) {
  .promoted-section { padding: 22px 28px; margin-bottom: 28px; }
}

.promoted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .promoted-header { margin-bottom: 16px; }
}

.promoted-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .promoted-title { font-size: 1rem; }
}

.promoted-title-icon {
  font-size: 1rem;
}

.promoted-badge {
  background: rgba(108,59,255,0.4);
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(108,59,255,0.5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Promoted Grid ----------------------------------------
   The promoted cards reuse the standard .game-card design
   (template-parts/game-card.php). Only their layout container
   changes: horizontal scroll slider on mobile, one centered
   3-across row on desktop.
   ----------------------------------------------------------- */

/* Mobile: horizontal scroll slider */
.promoted-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.promoted-grid::-webkit-scrollbar { display: none; }

/* Slider items keep the exact card design, just a slider width */
.promoted-grid > .game-card {
  flex: 0 0 88%;
  min-width: 250px;
  max-width: 340px;
  scroll-snap-align: start;
}

/* Desktop: exactly 3 equal cards in one centered row */
@media (min-width: 768px) {
  .promoted-grid {
    justify-content: center;
    align-items: stretch;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    gap: 14px;
  }

  .promoted-grid > .game-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .promoted-grid { gap: 18px; }
}

@media (min-width: 1280px) {
  .promoted-grid { gap: 22px; }
}

/* ============================================================
   GAME GRID: desktop spacing improvements
   ============================================================ */

@media (min-width: 1024px) {
  .game-grid { gap: 16px; }
  .game-card-left { gap: 16px; }
}

@media (min-width: 1280px) {
  .game-grid { gap: 18px; }
  .game-card-left { gap: 18px; }
}

@media (min-width: 1440px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ============================================================
   DESKTOP SPACING — game information vs. Download button
   Desktop only (>=1024px). Mobile/tablet untouched.
   No colour, font, card or button-style changes: spacing and
   column count only.
   ============================================================ */

@media (min-width: 1024px) {
  /* Cap the grid at 3 cards per row on every desktop width.
     At 4-per-row a card is only ~340px wide, which leaves ~60px for the
     game name once the 72px icon and 130px button are placed - that is
     what makes the cards feel compressed. 3 per row gives ~465px cards
     and roughly 175px of breathing room for the name.
     To go back to 4 per row, delete the two grid-template-columns
     declarations in this block and in the 1280px block below. */
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

  /* Horizontal space between the info block and the Download button */
  .game-card { column-gap: 32px; }

  .game-card-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .game-card-info { min-width: 0; }

  /* Button always parked on the far right edge of the card */
  .game-card > .btn-download { margin-left: auto; }
}

@media (min-width: 1280px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .game-card { column-gap: 40px; }
}

@media (min-width: 1440px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .game-card { column-gap: 48px; }
}

/* ============================================================
   COMPACT CARD VARIANT (Promoted Games row)
   Same card, minus the bonus / min-withdraw rows. Nothing else
   about the card changes.
   ============================================================ */
.game-card--compact .game-card-name { margin-bottom: 0; }
