/* playtime-gaming.css - mobile-first styling for playtime gaming */
/* Palette: #8A2BE2 purple | #E6E6FA lavender | #34495E dark slate | #00695C teal */
/* All custom classes use the pga1- prefix */

:root {
  --pga1-purple: #8A2BE2;
  --pga1-lavender: #E6E6FA;
  --pga1-slate: #34495E;
  --pga1-teal: #00695C;
  --pga1-bg: #1a2330;
  --pga1-bg-alt: #243245;
  --pga1-card: #2b3a50;
  --pga1-text: #E6E6FA;
  --pga1-muted: #b9c2d0;
  --pga1-gold: #f5c451;
  --pga1-radius: 1.4rem;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: linear-gradient(160deg, var(--pga1-bg) 0%, var(--pga1-slate) 100%);
  color: var(--pga1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pga1-lavender);
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  line-height: 1.25;
  color: #fff;
}

p { margin: 0 0 1rem; }

.pga1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pga1-no-scroll { overflow: hidden; }

/* ===== Header ===== */
.pga1-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--pga1-slate), var(--pga1-purple));
  border-bottom: 1px solid rgba(230, 230, 250, 0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.pga1-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pga1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

.pga1-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--pga1-gold);
}

.pga1-logo span {
  background: linear-gradient(90deg, var(--pga1-gold), var(--pga1-lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pga1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pga1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none;
}

.pga1-btn:active { transform: scale(0.96); }

.pga1-btn-login {
  background: rgba(230,230,250,0.12);
  color: var(--pga1-lavender);
  border: 1px solid rgba(230,230,250,0.35);
}

.pga1-btn-register {
  background: linear-gradient(90deg, var(--pga1-purple), var(--pga1-teal));
  color: #fff;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.55);
}

.pga1-btn-cta {
  background: linear-gradient(90deg, var(--pga1-gold), #ff9f1c);
  color: #2a1a00;
  box-shadow: 0 6px 18px rgba(245, 196, 81, 0.45);
}

.pga1-hamburger {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ===== Mobile menu ===== */
.pga1-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--pga1-bg-alt);
  z-index: 9999;
  padding: 1.6rem 1.2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}

.pga1-mobile-menu.pga1-menu-open { right: 0; }

.pga1-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  float: right;
  cursor: pointer;
}

.pga1-menu-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  clear: both;
}

.pga1-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pga1-mobile-menu li {
  border-bottom: 1px solid rgba(230,230,250,0.08);
}

.pga1-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--pga1-lavender);
  font-size: 1.35rem;
}

.pga1-mobile-menu a:active { color: var(--pga1-gold); }

.pga1-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: opacity 0.25s ease;
}

.pga1-backdrop.pga1-backdrop-show {
  opacity: 1;
  visibility: visible;
}

/* ===== Hero ===== */
.pga1-hero {
  margin-top: 1rem;
}

.pga1-hero-slider {
  position: relative;
  border-radius: var(--pga1-radius);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.pga1-hero-slide {
  display: none;
  position: relative;
  min-height: 180px;
}

.pga1-hero-slide.pga1-slide-active { display: block; }

.pga1-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.85);
}

.pga1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,35,48,0.25), rgba(26,35,48,0.92));
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pga1-hero-overlay h2 {
  font-size: 1.9rem;
  color: var(--pga1-gold);
  margin-bottom: 0.6rem;
}

.pga1-hero-overlay p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--pga1-lavender);
}

.pga1-hero-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.pga1-hero-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(230,230,250,0.4);
  margin: 0 3px;
}

.pga1-hero-dot.pga1-dot-active {
  background: var(--pga1-gold);
  width: 22px;
  border-radius: 4px;
}

/* ===== Section heading ===== */
.pga1-section {
  padding: 1.6rem 0;
}

.pga1-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pga1-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pga1-section-more {
  font-size: 1.2rem;
  color: var(--pga1-gold);
}

/* ===== Filter ===== */
.pga1-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}

.pga1-filter-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(230,230,250,0.25);
  background: rgba(230,230,250,0.06);
  color: var(--pga1-lavender);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pga1-filter-btn.pga1-filter-active {
  background: linear-gradient(90deg, var(--pga1-purple), var(--pga1-teal));
  color: #fff;
  border-color: transparent;
}

/* ===== Game grid ===== */
.pga1-cat-group { margin-bottom: 1.4rem; }

.pga1-cat-title {
  font-size: 1.4rem;
  color: var(--pga1-gold);
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.pga1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.pga1-game-card {
  background: var(--pga1-card);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(230,230,250,0.06);
  transition: transform 0.18s ease;
}

.pga1-game-card:active { transform: scale(0.96); }

.pga1-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pga1-game-name {
  padding: 0.4rem 0.5rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--pga1-lavender);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Promo banner ===== */
.pga1-promo-banner {
  background: linear-gradient(120deg, var(--pga1-purple), var(--pga1-teal));
  border-radius: var(--pga1-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 8px 22px rgba(138,43,226,0.4);
}

.pga1-promo-banner h3 {
  font-size: 1.7rem;
  color: var(--pga1-gold);
}

.pga1-promo-banner p {
  font-size: 1.2rem;
  color: var(--pga1-lavender);
  margin-bottom: 1rem;
}

/* ===== Feature cards ===== */
.pga1-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.pga1-feature {
  background: var(--pga1-card);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0,105,92,0.4);
}

.pga1-feature .ico {
  font-size: 2rem;
  color: var(--pga1-gold);
  margin-bottom: 0.4rem;
}

.pga1-feature h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pga1-feature p {
  font-size: 1.05rem;
  color: var(--pga1-muted);
  margin: 0;
}

/* ===== SEO text ===== */
.pga1-seo-text {
  background: var(--pga1-bg-alt);
  border-radius: var(--pga1-radius);
  padding: 1.4rem;
  margin: 1.2rem 0;
  border-left: 4px solid var(--pga1-gold);
}

.pga1-seo-text h2 {
  font-size: 1.6rem;
  color: var(--pga1-gold);
  margin-bottom: 0.8rem;
}

.pga1-seo-text h3 {
  font-size: 1.35rem;
  color: var(--pga1-lavender);
  margin-top: 1rem;
}

.pga1-seo-text p {
  font-size: 1.25rem;
  color: var(--pga1-text);
  margin-bottom: 0.8rem;
}

.pga1-seo-text a {
  color: var(--pga1-gold);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== FAQ ===== */
.pga1-faq-item {
  background: var(--pga1-card);
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(230,230,250,0.08);
}

.pga1-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pga1-faq-q .pga1-ico { color: var(--pga1-gold); transition: transform 0.2s; }

.pga1-faq-item.pga1-faq-open .pga1-ico { transform: rotate(45deg); }

.pga1-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  color: var(--pga1-muted);
  font-size: 1.18rem;
}

.pga1-faq-item.pga1-faq-open .pga1-faq-a {
  max-height: 600px;
  padding-bottom: 1rem;
}

/* ===== Footer ===== */
.pga1-footer {
  background: var(--pga1-bg);
  padding: 2rem 1.2rem 6.5rem;
  border-top: 1px solid rgba(230,230,250,0.1);
  margin-top: 1.4rem;
}

.pga1-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.pga1-footer h4 {
  font-size: 1.25rem;
  color: var(--pga1-gold);
  margin-bottom: 0.6rem;
}

.pga1-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pga1-footer li { margin-bottom: 0.4rem; }

.pga1-footer a {
  color: var(--pga1-lavender);
  font-size: 1.15rem;
}

.pga1-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pga1-muted);
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(230,230,250,0.08);
}

/* ===== Bottom nav ===== */
.pga1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--pga1-bg-alt);
  border-top: 1px solid rgba(230,230,250,0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.5);
}

.pga1-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pga1-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pga1-navbtn .ico { font-size: 22px; }

.pga1-navbtn:active { transform: scale(0.9); }

.pga1-navbtn.pga1-navbtn-active,
.pga1-navbtn.pga1-navbtn-promo {
  color: var(--pga1-gold);
}

.pga1-navbtn-promo {
  background: linear-gradient(180deg, transparent, rgba(138,43,226,0.25));
}

/* ===== Back to top ===== */
.pga1-backtop {
  position: fixed;
  right: 14px;
  bottom: 78px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pga1-purple), var(--pga1-teal));
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 999;
}

.pga1-backtop.pga1-backtop-show {
  opacity: 1;
  visibility: visible;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .pga1-bottom-nav { display: none; }
  .pga1-container { max-width: 760px; }
  .pga1-grid { grid-template-columns: repeat(6, 1fr); }
  .pga1-feature-row { grid-template-columns: repeat(4, 1fr); }
  .pga1-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pga1-footer { padding-bottom: 2rem; }
  main { padding-bottom: 0 !important; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
