/* =========================================================
   AppClick shared 1200px container system — 2026-08-19
   Loaded last on every page so older 1370/1400px rules cannot
   make individual pages wider than the requested site layout.
   ========================================================= */
:root {
  --appclick-container: 1200px;
  --appclick-gutter: 48px;
}

/* Main site + all app/game detail pages */
.container,
body.page-main .container,
body[class*="page-"] .container {
  width: min(var(--appclick-container), calc(100% - var(--appclick-gutter))) !important;
  max-width: var(--appclick-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Sections that previously had their own 1370/1400px wrappers */
.contact-gradient-page > .container,
.game-download-banner__inner,
body.page-corlenz-document-scanner.page-grand-gangster .download > .container,
body.page-corlenz-document-scanner.page-grand-gangster .download .download-inner,
body.page-corlenz-document-scanner.page-grand-gangster .inner-contact-section > .container {
  width: min(var(--appclick-container), calc(100% - var(--appclick-gutter))) !important;
  max-width: var(--appclick-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Standalone privacy pages use the same outer width, while keeping
   long paragraphs comfortable to read inside the 1200px canvas. */
.privacy-policy,
.privacy-wrap {
  width: min(var(--appclick-container), calc(100% - var(--appclick-gutter))) !important;
  max-width: var(--appclick-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.privacy-policy > p,
.privacy-policy > ul,
.privacy-policy > ol,
.privacy-wrap > p,
.privacy-wrap > ul,
.privacy-wrap > ol {
  max-width: 1050px;
}

/* Desktop spacing tuned for a 1200px content canvas. */
@media (min-width: 1000px) {
  body.page-main .hero-grid {
    gap: 52px !important;
  }

  body.page-main .hero h1 {
    font-size: clamp(56px, 5vw, 64px) !important;
    letter-spacing: -2.4px !important;
  }

  body.page-main .hero-copy > p {
    max-width: 540px !important;
  }

  body.page-main .feature-grid,
  body.page-main .product-grid,
  body.page-main .app-grid,
  body.page-main .apps-listing-grid,
  body.page-main .games-listing-grid,
  body.page-main .full-image-grid,
  body.page-main .games-full-grid,
  body.page-main .related-grid {
    gap: 20px !important;
  }

  body.page-main .feature-card {
    padding: 26px 24px !important;
  }

  body.page-main .app-card-media {
    height: 280px !important;
    padding: 16px !important;
  }

  body.page-main .app-listing-card .app-body {
    padding: 20px !important;
  }

  body.page-main .full-image-card {
    min-height: 560px !important;
  }

  body.page-main .full-image-card > a:first-child {
    height: 350px !important;
  }

  /* App/game detail layouts: reduce oversized gaps/text that were
     originally balanced around wider desktop containers. */
  body:not(.page-main) .hero-grid {
    gap: clamp(38px, 4vw, 56px) !important;
  }

  body.page-corlenz-document-scanner .hero-copy h1,
  body.page-screen-video-recorder .hero h1,
  body.page-vidvault-video-downloader .hero h1,
  body.page-collage-maker-edit .hero h1,
  body.page-smarty-men-jacket-edit .hero h1 {
    font-size: clamp(48px, 5vw, 66px) !important;
  }

  body.page-corlenz-document-scanner .cards,
  body.page-screen-video-recorder .cards,
  body.page-vidvault-video-downloader .cards,
  body.page-collage-maker-edit .cards,
  body.page-smarty-men-jacket-edit .cards,
  body.page-corlenz-document-scanner .corlenz-feature-grid {
    gap: 20px !important;
  }

  .game-download-banner__inner {
    gap: 34px !important;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.15fr) auto !important;
  }

  .game-download-store {
    min-width: 205px !important;
  }
}

/* Tablet */
@media (max-width: 999px) {
  :root {
    --appclick-gutter: 40px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  :root {
    --appclick-gutter: 28px;
  }

  .container,
  body.page-main .container,
  body[class*="page-"] .container,
  .contact-gradient-page > .container,
  .game-download-banner__inner,
  .privacy-policy,
  .privacy-wrap,
  body.page-corlenz-document-scanner.page-grand-gangster .download > .container,
  body.page-corlenz-document-scanner.page-grand-gangster .download .download-inner,
  body.page-corlenz-document-scanner.page-grand-gangster .inner-contact-section > .container {
    width: calc(100% - var(--appclick-gutter)) !important;
    max-width: var(--appclick-container) !important;
  }
}


/* Home + About compact content pass — 2026-08-19 */
@media (min-width: 1000px) {
  body.page-home .feature-card h3,
  body.page-home .product-card h3,
  body.page-home .app-card h3,
  body.page-home .why-grid h3,
  body.page-about .about-service-card h3,
  body.page-about .about-stat-grid .journey-kicker,
  body.page-about .about-stat-grid .journey-label,
  body.page-about .about-values-panel h3 {
    white-space: nowrap !important;
  }

  body.page-home .feature-card h3 {
    font-size: 18px !important;
    letter-spacing: -0.25px;
  }

  body.page-home .product-card h3,
  body.page-home .app-card h3 {
    font-size: 17px !important;
    letter-spacing: -0.25px;
  }

  body.page-home .why-grid h3 {
    font-size: 18px !important;
  }

  body.page-about .about-service-card h3 {
    font-size: 22px !important;
    letter-spacing: -0.35px;
  }

  body.page-about .about-stat-grid .journey-kicker,
  body.page-about .about-stat-grid .journey-label {
    font-size: 12px !important;
  }

  body.page-home .section-head,
  body.page-about .section-head {
    margin-bottom: 36px !important;
  }

  body.page-home .feature-card {
    min-height: 185px !important;
  }

  body.page-home .feature-card p,
  body.page-home .app-card p,
  body.page-home .why-grid p,
  body.page-about .about-service-card p {
    line-height: 1.6 !important;
  }

  body.page-about .about-story-copy p,
  body.page-about .about-values-grid p {
    line-height: 1.65 !important;
  }

  body.page-about .about-service-card {
    padding: 32px 26px !important;
  }
}

/* Games + Apps archive cards: edge-to-edge image like Home page — 2026-08-19 */
body.games-listing-page .app-listing-card .app-card-media,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card .app-card-media {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 0;
  overflow: hidden;
}

body.games-listing-page .app-listing-card .app-card-media img,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card .app-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Keep content breathing room only below the artwork. */
body.games-listing-page .app-listing-card .app-body,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card .app-body {
  padding: 20px !important;
}

/* Games + Apps archive cards: show the complete square artwork at full height — 2026-08-19 */
body.games-listing-page .app-listing-card .app-card-media,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card .app-card-media {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

body.games-listing-page .app-listing-card .app-card-media img,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card .app-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Keep the full artwork visible even on card hover. */
body.games-listing-page .app-listing-card:hover .app-card-media img,
body.page-main:not(.page-home) .apps-listing-grid .app-listing-card:hover .app-card-media img {
  transform: none !important;
}

/* =========================================================
   Home hero, featured game copy + mobile footer alignment
   ========================================================= */

/* Keep the new home headline balanced inside the 1200px hero. */
body.page-home .hero h1 {
  text-wrap: balance;
}

/* Featured game descriptions now follow the same visual rhythm as app cards. */
body.page-home #games .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.page-home #games .product-body p {
  flex: 1;
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Center and align every footer variant cleanly on phones. */
@media (max-width: 680px) {
  footer,
  .site-footer-main {
    text-align: center !important;
  }

  footer .footer-grid,
  .site-footer-main .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    justify-items: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  footer .footer-grid > *,
  .site-footer-main .footer-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  footer .footer-brand,
  .site-footer-main .footer-brand,
  footer .brand.footer-brand {
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  footer .footer-brand img,
  .site-footer-main .footer-brand img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  footer .footer-brand > div,
  footer .footer-grid p,
  .site-footer-main .footer-grid p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  footer .footer-links,
  footer .socials,
  .site-footer-main .footer-links,
  .site-footer-main .socials {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer-main .footer-grid > div > a:not(.brand),
  footer .footer-links a {
    text-align: center !important;
  }

  footer .copyright,
  footer .footer-bottom,
  .site-footer-main .footer-bottom {
    display: flex !important;
    width: min(var(--appclick-container), calc(100% - var(--appclick-gutter))) !important;
    max-width: var(--appclick-container) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .cookie-settings-footer-link {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
