/* ga8888-homes theme.css - All custom classes use pgdd- prefix */
/* Mobile-first: max-width 430px, rem units (root 62.5%) */

:root {
  --pgdd-purple: #8A2BE2;
  --pgdd-brown: #A0522D;
  --pgdd-slate: #34495E;
  --pgdd-gold: #FFCC33;
  --pgdd-pink: #FFC0CB;
  --pgdd-bg: #1a1330;
  --pgdd-bg2: #241a45;
  --pgdd-card: #2a1f55;
  --pgdd-text: #FFFFFF;
  --pgdd-muted: #c9c1e8;
  --pgdd-accent: #FFCC33;
  --pgdd-danger: #ff4d6d;
  --pgdd-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--pgdd-bg) 0%, var(--pgdd-bg2) 100%);
  color: var(--pgdd-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--pgdd-gold); text-decoration: none; }

/* ===== Header ===== */
.pgdd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(90deg, var(--pgdd-purple), var(--pgdd-slate));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.pgdd-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.8rem; font-weight: 800; color: var(--pgdd-gold);
  letter-spacing: 0.5px;
}
.pgdd-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pgdd-header-actions { display: flex; align-items: center; gap: 8px; }
.pgdd-btn {
  border: none; border-radius: 20px; padding: 8px 16px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 36px; transition: transform 0.15s, box-shadow 0.15s;
}
.pgdd-btn:active { transform: scale(0.95); }
.pgdd-btn-login {
  background: transparent; color: var(--pgdd-text);
  border: 1.5px solid var(--pgdd-gold);
}
.pgdd-btn-register {
  background: linear-gradient(90deg, var(--pgdd-gold), #ffaa00);
  color: #2a1a00;
  box-shadow: 0 2px 8px rgba(255,204,51,0.4);
}
.pgdd-menu-toggle {
  background: transparent; border: none; color: var(--pgdd-text);
  font-size: 2.2rem; cursor: pointer; padding: 4px 8px;
}

/* ===== Mobile Menu ===== */
.pgdd-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.pgdd-backdrop-show { opacity: 1; pointer-events: auto; }
.pgdd-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--pgdd-bg2); z-index: 9999;
  transition: right 0.3s ease; padding: 60px 16px 20px; overflow-y: auto;
}
.pgdd-menu-open { right: 0; }
.pgdd-mobile-menu a {
  display: block; padding: 14px 12px; color: var(--pgdd-text);
  border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.4rem;
}
.pgdd-mobile-menu a:hover { background: rgba(255,204,51,0.1); color: var(--pgdd-gold); }
.pgdd-menu-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none; color: var(--pgdd-text);
  font-size: 2.4rem; cursor: pointer;
}

/* ===== Layout ===== */
.pgdd-main { padding-top: 56px; }
@media (max-width: 768px) {
  .pgdd-main { padding-bottom: 80px; }
}
.pgdd-container { max-width: 430px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 769px) {
  .pgdd-container { max-width: 960px; padding: 0 20px; }
}

/* ===== Hero Carousel ===== */
.pgdd-hero {
  position: relative; margin: 12px 0; border-radius: var(--pgdd-radius);
  overflow: hidden; height: 180px;
}
@media (min-width: 769px) { .pgdd-hero { height: 320px; } }
.pgdd-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s;
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px; color: var(--pgdd-text);
}
.pgdd-slide-active { opacity: 1; }
.pgdd-hero-slide:nth-child(1) { background: linear-gradient(120deg, var(--pgdd-purple), var(--pgdd-brown)); }
.pgdd-hero-slide:nth-child(2) { background: linear-gradient(120deg, var(--pgdd-slate), var(--pgdd-purple)); }
.pgdd-hero-slide:nth-child(3) { background: linear-gradient(120deg, var(--pgdd-brown), var(--pgdd-pink)); }
.pgdd-hero h2 { font-size: 2rem; margin-bottom: 8px; color: var(--pgdd-gold); }
.pgdd-hero p { font-size: 1.3rem; margin-bottom: 12px; color: #fff; }
.pgdd-hero-cta {
  display: inline-block; background: var(--pgdd-gold); color: #2a1a00;
  padding: 8px 18px; border-radius: 20px; font-weight: 800; font-size: 1.3rem;
  width: fit-content; cursor: pointer; border: none;
}
.pgdd-hero-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.pgdd-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.pgdd-dot-active { background: var(--pgdd-gold); }

/* ===== Section Title ===== */
.pgdd-section-title {
  font-size: 1.8rem; font-weight: 800; margin: 20px 0 12px;
  color: var(--pgdd-gold); display: flex; align-items: center; gap: 8px;
}
.pgdd-section-title::before {
  content: ""; width: 4px; height: 20px; background: var(--pgdd-gold);
  border-radius: 2px;
}

/* ===== Category Tabs ===== */
.pgdd-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pgdd-cat-tabs::-webkit-scrollbar { display: none; }
.pgdd-cat-tab {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 20px;
  background: var(--pgdd-card); color: var(--pgdd-text);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}
.pgdd-cat-active {
  background: linear-gradient(90deg, var(--pgdd-gold), #ffaa00);
  color: #2a1a00; border-color: transparent;
}

/* ===== Game Grid ===== */
.pgdd-game-group { margin-bottom: 20px; }
.pgdd-game-group-title {
  font-size: 1.5rem; font-weight: 700; margin: 12px 0 10px;
  color: var(--pgdd-pink); text-transform: capitalize;
}
.pgdd-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 769px) { .pgdd-game-grid { grid-template-columns: repeat(6, 1fr); } }
.pgdd-game-card {
  background: var(--pgdd-card); border-radius: 10px; overflow: hidden;
  cursor: pointer; position: relative; transition: transform 0.15s;
  border: 1px solid rgba(255,255,255,0.08);
}
.pgdd-game-card:active { transform: scale(0.95); }
.pgdd-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pgdd-game-name {
  padding: 6px 4px; font-size: 1.1rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--pgdd-text);
}
.pgdd-game-play {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(0,0,0,0.4); opacity: 0;
  transition: opacity 0.2s; font-size: 1.2rem; font-weight: 700; color: var(--pgdd-gold);
}
.pgdd-game-card:hover .pgdd-game-play { opacity: 1; }

/* ===== Promo Banner ===== */
.pgdd-promo-banner {
  background: linear-gradient(90deg, var(--pgdd-brown), var(--pgdd-purple));
  border-radius: var(--pgdd-radius); padding: 16px; margin: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pgdd-promo-banner h3 { font-size: 1.6rem; color: var(--pgdd-gold); margin-bottom: 4px; }
.pgdd-promo-banner p { font-size: 1.2rem; color: #fff; }
.pgdd-promo-btn {
  background: var(--pgdd-gold); color: #2a1a00; border: none;
  border-radius: 20px; padding: 10px 18px; font-weight: 800; font-size: 1.3rem;
  cursor: pointer; white-space: nowrap;
}

/* ===== Features ===== */
.pgdd-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0;
}
@media (min-width: 769px) { .pgdd-features { grid-template-columns: repeat(4, 1fr); } }
.pgdd-feature {
  background: var(--pgdd-card); border-radius: 10px; padding: 14px 10px;
  text-align: center; border: 1px solid rgba(255,255,255,0.08);
}
.pgdd-feature .icon { font-size: 2.4rem; color: var(--pgdd-gold); margin-bottom: 6px; }
.pgdd-feature h4 { font-size: 1.3rem; margin-bottom: 4px; color: #fff; }
.pgdd-feature p { font-size: 1.1rem; color: var(--pgdd-muted); }

/* ===== SEO Content ===== */
.pgdd-content {
  background: var(--pgdd-card); border-radius: var(--pgdd-radius);
  padding: 16px; margin: 16px 0; line-height: 1.7;
}
.pgdd-content h2 { font-size: 1.7rem; color: var(--pgdd-gold); margin: 12px 0 8px; }
.pgdd-content h3 { font-size: 1.4rem; color: var(--pgdd-pink); margin: 10px 0 6px; }
.pgdd-content p { font-size: 1.3rem; color: var(--pgdd-muted); margin-bottom: 10px; }
.pgdd-content a { color: var(--pgdd-gold); text-decoration: underline; }
.pgdd-content ul { padding-left: 20px; margin-bottom: 10px; }
.pgdd-content li { font-size: 1.3rem; color: var(--pgdd-muted); margin-bottom: 4px; }

/* ===== FAQ ===== */
.pgdd-faq-item {
  background: var(--pgdd-card); border-radius: 8px; margin-bottom: 8px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.pgdd-faq-q {
  padding: 12px 14px; font-size: 1.3rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: #fff;
}
.pgdd-faq-q::after { content: "+"; font-size: 1.8rem; color: var(--pgdd-gold); }
.pgdd-faq-open .pgdd-faq-q::after { content: "-"; }
.pgdd-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s;
  padding: 0 14px; font-size: 1.2rem; color: var(--pgdd-muted);
}
.pgdd-faq-open .pgdd-faq-a { max-height: 300px; padding: 0 14px 12px; }

/* ===== Footer ===== */
.pgdd-footer {
  background: var(--pgdd-bg2); padding: 24px 12px 20px; margin-top: 20px;
  border-top: 2px solid var(--pgdd-purple);
}
.pgdd-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px;
}
@media (min-width: 769px) { .pgdd-footer-cols { grid-template-columns: repeat(4, 1fr); } }
.pgdd-footer-col h4 { font-size: 1.3rem; color: var(--pgdd-gold); margin-bottom: 8px; }
.pgdd-footer-col a {
  display: block; font-size: 1.2rem; color: var(--pgdd-muted);
  padding: 4px 0; text-decoration: none;
}
.pgdd-footer-col a:hover { color: var(--pgdd-gold); }
.pgdd-footer-bottom {
  text-align: center; font-size: 1.1rem; color: var(--pgdd-muted);
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px;
}

/* ===== Mobile Bottom Nav ===== */
.pgdd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: linear-gradient(90deg, var(--pgdd-slate), var(--pgdd-purple));
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.pgdd-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent;
  border: none; color: var(--pgdd-text); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  font-size: 1rem; transition: transform 0.15s, color 0.15s;
}
.pgdd-nav-btn:active { transform: scale(0.9); }
.pgdd-nav-btn .ic { font-size: 2.2rem; line-height: 1; }
.pgdd-nav-btn .lbl { font-size: 1rem; color: var(--pgdd-muted); }
.pgdd-nav-btn.pgdd-nav-current .ic,
.pgdd-nav-btn.pgdd-nav-current .lbl { color: var(--pgdd-gold); }
@media (min-width: 769px) { .pgdd-bottom-nav { display: none; } }

/* ===== Desktop Nav ===== */
.pgdd-desktop-nav { display: none; }
@media (min-width: 769px) {
  .pgdd-desktop-nav { display: flex; gap: 18px; align-items: center; }
  .pgdd-desktop-nav a { color: #fff; font-size: 1.3rem; font-weight: 600; }
  .pgdd-desktop-nav a:hover { color: var(--pgdd-gold); }
}

.pgdd-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.pgdd-mini-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px; }
.pgdd-mini-card strong { color: var(--pgdd-gold); display: block; font-size: 1.4rem; margin-bottom: 4px; }
.pgdd-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.pgdd-text-link { color: var(--pgdd-gold); font-weight: 800; text-decoration: underline; cursor: pointer; }
.pgdd-wide-img { width: 100%; border-radius: 12px; margin: 12px 0; border: 1px solid rgba(255,255,255,0.12); }
.pgdd-step { display: flex; gap: 10px; margin: 10px 0; color: var(--pgdd-muted); }
.pgdd-step b { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--pgdd-gold); color: #2a1a00; display: inline-flex; align-items: center; justify-content: center; }
