/* BGWIN - style.css
 * Mobile-first casino gaming site for bgwin.homes (PH)
 * All custom classes use g42d- prefix
 * Palette: #34495E (dark bg) | #E0FFFF (light text) | #CC99FF (accent) | #880E4F (magenta)
 */

:root {
  --g42d-bg: #34495E;
  --g42d-bg-deep: #243443;
  --g42d-bg-soft: #3d5266;
  --g42d-text: #E0FFFF;
  --g42d-text-dim: #b9d4dc;
  --g42d-accent: #CC99FF;
  --g42d-accent-2: #880E4F;
  --g42d-gold: #f2c14e;
  --g42d-radius: 1.2rem;
  --g42d-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.35);
  --g42d-header-h: 6rem;
  --g42d-bnav-h: 6rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, #3d5266 0%, #34495E 45%, #243443 100%);
  color: var(--g42d-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--g42d-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
.g42d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #243443 0%, #34495E 60%, #2a3a4b 100%);
  border-bottom: 0.2rem solid rgba(204,153,255,0.35);
  box-shadow: var(--g42d-shadow);
}
.g42d-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; min-height: var(--g42d-header-h);
}
.g42d-logo { display: flex; align-items: center; gap: 0.8rem; }
.g42d-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.g42d-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--g42d-text); letter-spacing: 0.05rem; }
.g42d-logo-text span { color: var(--g42d-accent); }

.g42d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g42d-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem; border: none; border-radius: 2rem;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  min-height: 4.4rem; transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.g42d-btn:hover { text-decoration: none; transform: translateY(-0.1rem); }
.g42d-btn-register {
  background: linear-gradient(90deg, var(--g42d-accent-2), #b3155f);
  color: #fff; box-shadow: 0 0.3rem 0.8rem rgba(136,14,79,0.5);
}
.g42d-btn-login {
  background: transparent; color: var(--g42d-accent);
  border: 0.15rem solid var(--g42d-accent);
}
.g42d-menu-btn {
  background: transparent; border: none; color: var(--g42d-text);
  font-size: 2.2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Nav menu (expandable) ---------- */
.g42d-nav {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 32rem;
  height: 100vh; z-index: 9999;
  background: #1c2733; padding: 6rem 1.6rem 2rem;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 0.2rem solid rgba(204,153,255,0.4);
}
.g42d-nav-open { right: 0; }
.g42d-nav h4 { color: var(--g42d-accent); font-size: 1.4rem; margin: 1.5rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.1rem; }
.g42d-nav a {
  display: block; padding: 1rem 0.8rem; color: var(--g42d-text);
  font-size: 1.4rem; border-bottom: 0.1rem solid rgba(224,255,255,0.08);
}
.g42d-nav a:hover { background: rgba(204,153,255,0.12); text-decoration: none; }
.g42d-nav-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent;
  border: none; color: var(--g42d-text); font-size: 2.4rem; cursor: pointer;
}

/* ---------- Main ---------- */
.g42d-main { padding-top: calc(var(--g42d-header-h) + 1rem); }

/* ---------- Hero carousel ---------- */
.g42d-hero { position: relative; border-radius: var(--g42d-radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--g42d-shadow); }
.g42d-slides { position: relative; height: 18rem; }
.g42d-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: flex-end;
}
.g42d-slide img { width: 100%; height: 100%; object-fit: cover; }
.g42d-slide-active { opacity: 1; }
.g42d-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 1.3rem;
}
.g42d-slide-caption strong { color: var(--g42d-accent); font-size: 1.5rem; }
.g42d-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 3.6rem; height: 3.6rem; border-radius: 50%; font-size: 1.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.g42d-carousel-arrow:hover { background: var(--g42d-accent-2); }
.g42d-arrow-prev { left: 0.8rem; }
.g42d-arrow-next { right: 0.8rem; }
.g42d-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.g42d-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.g42d-dot-active { background: var(--g42d-accent); width: 2rem; border-radius: 0.4rem; }

/* ---------- Section ---------- */
.g42d-section { margin-bottom: 2rem; }
.g42d-section-title {
  font-size: 1.7rem; font-weight: 800; margin: 0 0 1rem;
  color: var(--g42d-text); border-left: 0.4rem solid var(--g42d-accent);
  padding-left: 0.8rem;
}
.g42d-section-title small { color: var(--g42d-text-dim); font-size: 1.1rem; font-weight: 500; }

/* ---------- Promo CTA banner ---------- */
.g42d-cta {
  background: linear-gradient(90deg, var(--g42d-accent-2), #5c0a35);
  border-radius: var(--g42d-radius); padding: 1.4rem; text-align: center;
  margin-bottom: 1.5rem; box-shadow: var(--g42d-shadow);
}
.g42d-cta h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.6rem; }
.g42d-cta p { color: #f3d6e2; margin: 0 0 1rem; font-size: 1.25rem; }
.g42d-cta .g42d-btn { background: var(--g42d-gold); color: #3a2a00; }

/* ---------- Filter chips ---------- */
.g42d-filter-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; }
.g42d-filter-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--g42d-bg-soft); color: var(--g42d-text);
  font-size: 1.2rem; border: 0.1rem solid transparent; cursor: pointer;
  min-height: 3.6rem; display: inline-flex; align-items: center;
}
.g42d-filter-active { background: var(--g42d-accent); color: #2a1a3a; font-weight: 700; border-color: var(--g42d-accent); }

/* ---------- Game grid ---------- */
.g42d-game-section { margin-bottom: 1.8rem; }
.g42d-game-section h3 {
  font-size: 1.4rem; color: var(--g42d-accent); margin: 0 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g42d-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g42d-card {
  background: var(--g42d-bg-soft); border-radius: 0.9rem; overflow: hidden;
  border: 0.1rem solid rgba(204,153,255,0.2); cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; position: relative;
}
.g42d-card:hover { transform: translateY(-0.2rem); box-shadow: var(--g42d-shadow); text-decoration: none; }
.g42d-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.g42d-card-name {
  font-size: 1rem; color: var(--g42d-text); padding: 0.4rem 0.5rem;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Info / features cards ---------- */
.g42d-info-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.g42d-info-card {
  background: var(--g42d-bg-soft); border-radius: var(--g42d-radius);
  padding: 1.2rem; border-left: 0.3rem solid var(--g42d-accent);
}
.g42d-info-card h4 { margin: 0 0 0.5rem; color: var(--g42d-accent); font-size: 1.4rem; }
.g42d-info-card p { margin: 0; color: var(--g42d-text-dim); font-size: 1.2rem; }

/* ---------- Testimonials ---------- */
.g42d-testimonial {
  background: var(--g42d-bg-soft); border-radius: var(--g42d-radius);
  padding: 1.2rem; margin-bottom: 0.8rem; border-top: 0.2rem solid var(--g42d-gold);
}
.g42d-testimonial p { font-style: italic; color: var(--g42d-text); font-size: 1.2rem; margin: 0 0 0.5rem; }
.g42d-testimonial cite { color: var(--g42d-accent); font-size: 1.1rem; }

/* ---------- Payment methods ---------- */
.g42d-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g42d-pay-pill {
  background: var(--g42d-bg-soft); color: var(--g42d-text);
  padding: 0.6rem 1rem; border-radius: 2rem; font-size: 1.1rem;
  border: 0.1rem solid rgba(204,153,255,0.3); display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Winners ---------- */
.g42d-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; background: var(--g42d-bg-soft); border-radius: 0.8rem;
  margin-bottom: 0.5rem; font-size: 1.2rem;
}
.g42d-winner-row strong { color: var(--g42d-gold); }

/* ---------- FAQ ---------- */
.g42d-faq-item {
  background: var(--g42d-bg-soft); border-radius: 0.8rem; margin-bottom: 0.6rem; overflow: hidden;
}
.g42d-faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  color: var(--g42d-text); font-size: 1.3rem; font-weight: 700;
  padding: 1rem 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.g42d-faq-q .g42d-faq-icon { color: var(--g42d-accent); font-size: 1.6rem; }
.g42d-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--g42d-text-dim); font-size: 1.2rem; }
.g42d-faq-open .g42d-faq-a { max-height: 30rem; padding: 0 1.2rem 1.2rem; }

/* ---------- SEO content ---------- */
.g42d-seo-content { color: var(--g42d-text-dim); font-size: 1.2rem; line-height: 1.6; }
.g42d-seo-content h2 { color: var(--g42d-text); font-size: 1.6rem; margin: 1.5rem 0 0.6rem; }
.g42d-seo-content h3 { color: var(--g42d-accent); font-size: 1.4rem; margin: 1.2rem 0 0.4rem; }
.g42d-seo-content p { margin: 0 0 0.8rem; }
.g42d-seo-content a { color: var(--g42d-accent); font-weight: 600; }

/* ---------- Footer ---------- */
.g42d-footer {
  background: #1c2733; padding: 2rem 1.2rem 8rem; margin-top: 2rem;
  border-top: 0.2rem solid rgba(204,153,255,0.3);
}
.g42d-footer-inner { max-width: 430px; margin: 0 auto; }
.g42d-footer-brand { color: var(--g42d-text); font-size: 1.2rem; margin-bottom: 1rem; }
.g42d-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1rem; }
.g42d-footer-links a { color: var(--g42d-text-dim); font-size: 1.1rem; }
.g42d-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.g42d-footer-copy { color: var(--g42d-text-dim); font-size: 1.05rem; border-top: 0.1rem solid rgba(255,255,255,0.08); padding-top: 1rem; }

/* ---------- Bottom nav ---------- */
.g42d-bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g42d-bnav-h);
  background: linear-gradient(180deg, #2a3a4b, #1c2733);
  border-top: 0.2rem solid rgba(204,153,255,0.35);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -0.4rem 1rem rgba(0,0,0,0.4);
}
.g42d-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--g42d-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; font-size: 1rem; padding: 0.4rem;
  transition: color 0.15s, transform 0.15s;
}
.g42d-bnav-btn .g42d-bnav-icon { font-size: 2.2rem; line-height: 1; }
.g42d-bnav-btn .g42d-bnav-label { font-size: 1rem; }
.g42d-bnav-btn:hover { color: var(--g42d-accent); transform: translateY(-0.1rem); }
.g42d-bnav-btn:active { transform: scale(0.92); }
.g42d-bnav-current { color: var(--g42d-accent); }
.g42d-bnav-current .g42d-bnav-icon { color: var(--g42d-gold); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g42d-bnav { display: none; }
  .g42d-container, .g42d-wrapper, .g42d-header-inner, .g42d-footer-inner { max-width: 900px; }
  .g42d-grid { grid-template-columns: repeat(6, 1fr); }
  .g42d-info-grid { grid-template-columns: repeat(2, 1fr); }
  .g42d-slides { height: 26rem; }
  .g42d-footer { padding-bottom: 2rem; }
}

/* Mobile bottom clearance */
@media (max-width: 768px) {
  .g42d-main { padding-bottom: 8rem; }
  .g42d-footer { padding-bottom: 8rem; }
}

/* Touch target safety */
.g42d-btn, .g42d-bnav-btn, .g42d-menu-btn, .g42d-filter-chip { touch-action: manipulation; }
