/* ==========================================================================
   gcash bingo plus - Core Theme (theme-0bd1.css)
   Mobile-first PH online casino styling. All custom classes use gd1f- prefix.
   Palette: #006400 | #FF8C00 | #1A1A2E | #3CB371 | #00FA9A
   ========================================================================== */

:root {
  --gd1f-primary: #006400;       /* Dark green - brand backbone */
  --gd1f-accent: #FF8C00;        /* Dark orange - CTA / promo energy */
  --gd1f-bg: #1A1A2E;            /* Deep navy - primary background */
  --gd1f-bg-alt: #15152a;        /* Slightly darker panel */
  --gd1f-success: #3CB371;       /* Medium sea green - positive cues */
  --gd1f-mint: #00FA9A;          /* Spring green - highlights / links */
  --gd1f-text: #f5f7fa;          /* Primary light text */
  --gd1f-text-soft: #c9d1d9;     /* Soft body copy */
  --gd1f-muted: #8a93a6;         /* Meta / footer text */
  --gd1f-border: rgba(255,255,255,0.08);
  --gd1f-radius: 12px;
  --gd1f-radius-sm: 8px;
  --gd1f-shadow: 0 6px 18px rgba(0,0,0,0.35);
  --gd1f-header-h: 56px;
  --gd1f-bottom-h: 62px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gd1f-bg);
  color: var(--gd1f-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gd1f-mint); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* Layout helpers */
.gd1f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.gd1f-wrapper { padding: 16px 14px; }
.gd1f-section { padding: 22px 14px; }
.gd1f-grid { display: grid; gap: 12px; }
.gd1f-flex { display: flex; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; color: var(--gd1f-text); }
h1 { font-size: 2.2rem; margin: 8px 0; }
h2 { font-size: 1.9rem; margin: 14px 0 8px; }
h3 { font-size: 1.65rem; margin: 10px 0 6px; }
p { margin: 6px 0; color: var(--gd1f-text-soft); }
.gd1f-eyebrow { font-size: 1.25rem; color: var(--gd1f-mint); letter-spacing: .08em; text-transform: uppercase; }
.gd1f-highlight { color: var(--gd1f-accent); font-weight: 700; }
.gd1f-mint-text { color: var(--gd1f-mint); font-weight: 600; }

/* Header */
.gd1f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--gd1f-header-h);
  background: linear-gradient(90deg, #003200 0%, var(--gd1f-primary) 60%, #004f00 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  border-bottom: 2px solid var(--gd1f-accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.gd1f-logo { display: flex; align-items: center; gap: 8px; color: #fff; }
.gd1f-logo img { width: 28px; height: 28px; border-radius: 6px; }
.gd1f-logo-text { font-weight: 700; font-size: 1.5rem; color: #fff; }
.gd1f-logo-text span { color: var(--gd1f-accent); }
.gd1f-header-actions { display: flex; align-items: center; gap: 6px; }
.gd1f-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 700; transition: transform .15s, filter .15s; }
.gd1f-btn:active { transform: scale(.96); }
.gd1f-btn-login { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.gd1f-btn-register { background: linear-gradient(135deg, var(--gd1f-accent) 0%, #ff6a00 100%); color: #1A1A2E; box-shadow: 0 4px 12px rgba(255,140,0,0.4); }
.gd1f-menu-toggle { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #fff; }

/* Mobile menu drawer */
.gd1f-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; height: 100vh; z-index: 9999;
  background: var(--gd1f-bg-alt); padding: 70px 18px 30px;
  transform: translateX(0); transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5); overflow-y: auto;
}
.gd1f-mobile-menu:not(.gd1f-menu-open) { right: -100%; }
.gd1f-mobile-menu h3 { color: var(--gd1f-accent); margin: 14px 0 6px; font-size: 1.4rem; }
.gd1f-mobile-menu a { display: block; padding: 10px 8px; border-bottom: 1px solid var(--gd1f-border); color: var(--gd1f-text-soft); font-size: 1.4rem; }
.gd1f-mobile-menu a:hover { color: var(--gd1f-mint); }
.gd1f-menu-close { position: absolute; top: 14px; right: 14px; font-size: 2rem; color: #fff; }

/* Main spacer (fixed header + bottom nav clearance) */
.gd1f-main { padding-top: calc(var(--gd1f-header-h) + 6px); padding-bottom: calc(var(--gd1f-bottom-h) + 16px); }

/* Hero carousel */
.gd1f-hero { position: relative; margin: 6px 0 14px; border-radius: var(--gd1f-radius); overflow: hidden; box-shadow: var(--gd1f-shadow); }
.gd1f-slider { position: relative; }
.gd1f-slide { display: none; position: relative; }
.gd1f-slide img { width: 100%; height: 180px; object-fit: cover; }
.gd1f-slide-caption { position: absolute; left: 14px; bottom: 14px; right: 14px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.gd1f-slide-caption h2 { font-size: 1.8rem; margin: 0 0 4px; color: #fff; }
.gd1f-slide-caption p { font-size: 1.25rem; color: #fff; margin: 0; }
.gd1f-slide-active { display: block; }
.gd1f-slider-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gd1f-slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.gd1f-dot-active { background: var(--gd1f-accent); }

/* CTA strip */
.gd1f-cta-strip { display: flex; gap: 10px; margin: 12px 0; }
.gd1f-cta-strip .gd1f-btn { flex: 1; min-height: 42px; font-size: 1.4rem; }

/* Section heading */
.gd1f-section-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.gd1f-section-head h2 { margin: 0; font-size: 1.7rem; }
.gd1f-section-head a { font-size: 1.2rem; color: var(--gd1f-accent); font-weight: 700; }

/* Category filter chips */
.gd1f-filter-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; }
.gd1f-filter-btn { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--gd1f-text-soft); font-size: 1.25rem; white-space: nowrap; }
.gd1f-filter-active { background: var(--gd1f-accent); color: #1A1A2E; font-weight: 700; }

/* Game grid */
.gd1f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gd1f-game-card { background: var(--gd1f-bg-alt); border-radius: var(--gd1f-radius-sm); padding: 6px; text-align: center; transition: transform .15s; border: 1px solid var(--gd1f-border); }
.gd1f-game-card:active { transform: scale(.97); }
.gd1f-game-card img { width: 100%; height: 78px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.gd1f-game-name { font-size: 1.1rem; color: var(--gd1f-text-soft); line-height: 1.2; min-height: 26px; overflow: hidden; }
.gd1f-game-badge { display: inline-block; background: var(--gd1f-accent); color: #1A1A2E; font-size: 1rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-bottom: 4px; }

/* Info / feature cards */
.gd1f-card { background: var(--gd1f-bg-alt); border-radius: var(--gd1f-radius); padding: 14px; border: 1px solid var(--gd1f-border); margin-bottom: 12px; }
.gd1f-card-title { display: flex; align-items: center; gap: 8px; color: var(--gd1f-accent); font-weight: 700; font-size: 1.45rem; margin-bottom: 6px; }
.gd1f-card p { font-size: 1.35rem; }
.gd1f-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gd1f-feature-item { background: rgba(0,100,0,0.18); border-radius: var(--gd1f-radius-sm); padding: 12px; text-align: center; border: 1px solid rgba(60,179,113,0.25); }
.gd1f-feature-item i { font-size: 24px; color: var(--gd1f-mint); }
.gd1f-feature-item h3 { font-size: 1.35rem; margin: 6px 0 2px; color: #fff; }
.gd1f-feature-item p { font-size: 1.2rem; margin: 0; }

/* RTP compact stats */
.gd1f-rtp-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.gd1f-rtp-cell { background: rgba(255,140,0,0.08); border-radius: 6px; padding: 8px; text-align: center; border: 1px solid rgba(255,140,0,0.2); }
.gd1f-rtp-cell .gd1f-rtp-val { font-size: 1.7rem; font-weight: 800; color: var(--gd1f-accent); }
.gd1f-rtp-cell .gd1f-rtp-label { font-size: 1.1rem; color: var(--gd1f-text-soft); }

/* Testimonials */
.gd1f-testimonial { background: var(--gd1f-bg-alt); border-left: 3px solid var(--gd1f-success); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.gd1f-testimonial .gd1f-stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 2px; }
.gd1f-testimonial p { font-size: 1.3rem; margin: 2px 0; }
.gd1f-testimonial .gd1f-author { font-size: 1.15rem; color: var(--gd1f-mint); font-weight: 700; }

/* Payment chips */
.gd1f-payment-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gd1f-payment-chip { background: rgba(255,255,255,0.08); border-radius: 999px; padding: 6px 12px; font-size: 1.2rem; color: var(--gd1f-text-soft); border: 1px solid var(--gd1f-border); display: inline-flex; align-items: center; gap: 4px; }

/* FAQ */
.gd1f-faq-item { background: var(--gd1f-bg-alt); border-radius: var(--gd1f-radius-sm); margin-bottom: 8px; overflow: hidden; border: 1px solid var(--gd1f-border); }
.gd1f-faq-q { padding: 12px; font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; }
.gd1f-faq-q i { color: var(--gd1f-accent); }
.gd1f-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 12px; font-size: 1.3rem; color: var(--gd1f-text-soft); }
.gd1f-faq-open .gd1f-faq-a { max-height: 320px; padding: 0 12px 12px; }

/* Winners ticker */
.gd1f-winner-list { display: grid; gap: 6px; }
.gd1f-winner-row { display: flex; justify-content: space-between; background: rgba(0,250,154,0.06); padding: 8px 10px; border-radius: 6px; font-size: 1.25rem; border: 1px solid rgba(0,250,154,0.15); }
.gd1f-winner-name { color: var(--gd1f-mint); font-weight: 700; }
.gd1f-winner-amount { color: var(--gd1f-accent); font-weight: 700; }

/* App download banner */
.gd1f-app-banner { background: linear-gradient(135deg, #003200 0%, var(--gd1f-primary) 50%, var(--gd1f-accent) 120%); border-radius: var(--gd1f-radius); padding: 16px; color: #fff; display: flex; align-items: center; gap: 12px; margin: 12px 0; border: 1px solid var(--gd1f-border); }
.gd1f-app-banner i { font-size: 36px; }
.gd1f-app-banner h3 { color: #fff; margin: 0 0 4px; font-size: 1.55rem; }
.gd1f-app-banner p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin: 0; }
.gd1f-app-banner .gd1f-btn { background: var(--gd1f-accent); color: #1A1A2E; margin-top: 6px; }

/* Promo text link */
.gd1f-promo-link { color: var(--gd1f-accent); font-weight: 700; text-decoration: underline; }

/* Back to top */
.gd1f-back-top { position: fixed; right: 14px; bottom: calc(var(--gd1f-bottom-h) + 12px); width: 38px; height: 38px; border-radius: 50%; background: var(--gd1f-accent); color: #1A1A2E; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--gd1f-shadow); z-index: 999; }

/* Footer */
.gd1f-footer { background: #0d0d1a; padding: 22px 14px; border-top: 2px solid var(--gd1f-primary); }
.gd1f-footer h3 { color: var(--gd1f-accent); font-size: 1.5rem; margin-bottom: 6px; }
.gd1f-footer p { color: var(--gd1f-muted); font-size: 1.25rem; }
.gd1f-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 12px 0; }
.gd1f-footer-links a { color: var(--gd1f-text-soft); font-size: 1.2rem; }
.gd1f-footer-links a:hover { color: var(--gd1f-mint); }
.gd1f-footer-promos { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.gd1f-footer-promos .gd1f-btn { flex: 1 1 45%; min-height: 36px; font-size: 1.2rem; padding: 0 8px; }
.gd1f-copyright { text-align: center; color: var(--gd1f-muted); font-size: 1.1rem; margin-top: 10px; border-top: 1px solid var(--gd1f-border); padding-top: 10px; }

/* Bottom nav (mobile only) */
.gd1f-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: var(--gd1f-bottom-h); background: linear-gradient(180deg, #003200 0%, #001600 100%); border-top: 2px solid var(--gd1f-accent); display: flex; justify-content: space-around; align-items: stretch; box-shadow: 0 -3px 10px rgba(0,0,0,0.45); }
.gd1f-bottom-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gd1f-text-soft); font-size: 1.05rem; min-width: 60px; transition: color .15s, transform .15s; }
.gd1f-bottom-nav-btn i, .gd1f-bottom-nav-btn .material-icons-outlined { font-size: 22px; }
.gd1f-bottom-nav-btn:active { transform: scale(.92); }
.gd1f-bottom-nav-btn.gd1f-nav-current { color: var(--gd1f-accent); }
.gd1f-bottom-nav-btn .gd1f-nav-promo { color: var(--gd1f-mint); }

/* Responsive: hide bottom nav on desktop / widen wrapper */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .gd1f-bottom-nav { display: none; }
  .gd1f-main { padding-bottom: 24px; }
}

/* Small phone safety */
@media (max-width: 359px) {
  .gd1f-game-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.9rem; }
}
