/* ============================================================
   OKBet PH - Core Stylesheet
   Mobile-first HTML5 gaming website (max-width: 430px)
   All custom classes use the "gdf3-" prefix.
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gdf3-bg: #0D1117;
  --gdf3-bg-alt: #141b24;
  --gdf3-bg-card: #1b2430;
  --gdf3-primary: #228B22;
  --gdf3-primary-light: #2fb52f;
  --gdf3-primary-dark: #176b17;
  --gdf3-accent: #f5c518;
  --gdf3-accent-warm: #ff7a18;
  --gdf3-text: #f3f6f4;
  --gdf3-text-muted: #9fb0a3;
  --gdf3-border: #2a3744;
  --gdf3-danger: #e04949;
  --gdf3-radius: 12px;
  --gdf3-radius-sm: 8px;
  --gdf3-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --gdf3-header-h: 56px;
  --gdf3-bottomnav-h: 62px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--gdf3-bg);
  color: var(--gdf3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gdf3-primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.gdf3-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.gdf3-wrapper { padding-top: var(--gdf3-header-h); padding-bottom: calc(var(--gdf3-bottomnav-h) + 20px); min-height: 100vh; }

/* ---------- Header ---------- */
.gdf3-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0f161e 0%, #0D1117 100%);
  border-bottom: 1px solid var(--gdf3-border);
  box-shadow: var(--gdf3-shadow);
}
.gdf3-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--gdf3-header-h);
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.gdf3-logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gdf3-logo img { width: 30px; height: 30px; border-radius: 6px; }
.gdf3-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--gdf3-text); white-space: nowrap; }
.gdf3-logo-text span { color: var(--gdf3-primary-light); }
.gdf3-header-actions { display: flex; align-items: center; gap: 6px; }
.gdf3-menu-btn {
  background: transparent; border: 0; color: var(--gdf3-text); cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 6px; border-radius: 6px;
}
.gdf3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: var(--gdf3-radius-sm); cursor: pointer;
  font-weight: 700; font-size: 1.3rem; padding: 8px 14px; min-height: 36px;
  transition: transform .12s ease, filter .12s ease;
  text-decoration: none;
}
.gdf3-btn:active { transform: scale(.96); }
.gdf3-btn-primary { background: linear-gradient(135deg, var(--gdf3-primary) 0%, var(--gdf3-primary-light) 100%); color: #fff; box-shadow: 0 4px 12px rgba(34,139,34,.35); }
.gdf3-btn-outline { background: transparent; color: var(--gdf3-text); border: 1px solid var(--gdf3-primary); }
.gdf3-btn-accent { background: linear-gradient(135deg, var(--gdf3-accent-warm) 0%, var(--gdf3-accent) 100%); color: #1a1206; }
.gdf3-btn-block { display: flex; width: 100%; padding: 12px; font-size: 1.5rem; }

/* ---------- Mobile menu ---------- */
.gdf3-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; background: var(--gdf3-bg-alt); z-index: 9999;
  box-shadow: -6px 0 20px rgba(0,0,0,.45);
  transition: right .25s ease; padding: 16px; overflow-y: auto;
}
.gdf3-mobile-menu.gdf3-open { right: 0; }
.gdf3-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.gdf3-menu-close { background: transparent; border: 0; color: var(--gdf3-text); font-size: 2rem; cursor: pointer; }
.gdf3-menu-list li a {
  display: block; padding: 12px 10px; border-bottom: 1px solid var(--gdf3-border);
  color: var(--gdf3-text); font-size: 1.4rem; font-weight: 600;
}
.gdf3-menu-list li a:active { background: rgba(34,139,34,.12); }
.gdf3-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9998;
  display: none;
}
.gdf3-overlay.gdf3-open { display: block; }

/* ---------- Hero / Carousel ---------- */
.gdf3-hero { margin-top: 12px; }
.gdf3-carousel { position: relative; border-radius: var(--gdf3-radius); overflow: hidden; box-shadow: var(--gdf3-shadow); }
.gdf3-carousel-track { display: flex; transition: transform .35s ease; }
.gdf3-slide { min-width: 100%; position: relative; }
.gdf3-slide img { width: 100%; height: 180px; object-fit: cover; }
.gdf3-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 100%);
  padding: 24px 14px 12px; color: #fff;
}
.gdf3-slide-cap h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.gdf3-slide-cap p { font-size: 1.25rem; color: #e6efe8; margin-bottom: 8px; }
.gdf3-carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.gdf3-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: var(--gdf3-text-muted); cursor: pointer; padding: 0;
}
.gdf3-carousel-dots button.gdf3-active { background: var(--gdf3-primary-light); width: 18px; border-radius: 6px; }

/* ---------- Section ---------- */
.gdf3-section { margin-top: 18px; }
.gdf3-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gdf3-section-title {
  font-size: 1.55rem; font-weight: 800; color: var(--gdf3-text);
  display: flex; align-items: center; gap: 6px;
}
.gdf3-section-title i { color: var(--gdf3-accent); }
.gdf3-section-more { font-size: 1.2rem; color: var(--gdf3-primary-light); font-weight: 600; }

/* ---------- Game grid ---------- */
.gdf3-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gdf3-game-card {
  background: var(--gdf3-bg-card); border: 1px solid var(--gdf3-border);
  border-radius: var(--gdf3-radius-sm); padding: 6px; text-align: center;
  cursor: pointer; transition: transform .12s ease, border-color .12s ease;
  position: relative; overflow: hidden;
}
.gdf3-game-card:active { transform: scale(.96); border-color: var(--gdf3-primary-light); }
.gdf3-game-card img { width: 100%; height: 84px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.gdf3-game-name { font-size: 1.1rem; color: var(--gdf3-text); font-weight: 600; line-height: 1.3; min-height: 28px; overflow: hidden; }
.gdf3-game-badge {
  position: absolute; top: 4px; left: 4px; background: var(--gdf3-accent-warm);
  color: #1a1206; font-size: .95rem; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.gdf3-game-badge.hot { background: var(--gdf3-danger); color: #fff; }

/* ---------- Category highlight chips ---------- */
.gdf3-cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gdf3-cat-row::-webkit-scrollbar { display: none; }
.gdf3-cat-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 20px;
  background: var(--gdf3-bg-card); border: 1px solid var(--gdf3-border);
  color: var(--gdf3-text); font-size: 1.2rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.gdf3-cat-chip i { color: var(--gdf3-primary-light); }

/* ---------- Info / content cards ---------- */
.gdf3-card {
  background: var(--gdf3-bg-card); border: 1px solid var(--gdf3-border);
  border-radius: var(--gdf3-radius); padding: 14px; box-shadow: var(--gdf3-shadow);
}
.gdf3-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--gdf3-text); }
.gdf3-card p { font-size: 1.25rem; color: var(--gdf3-text-muted); margin-bottom: 8px; }
.gdf3-card ul { padding-left: 16px; }
.gdf3-card ul li { font-size: 1.2rem; color: var(--gdf3-text-muted); margin-bottom: 4px; list-style: disc; }

/* ---------- Steps ---------- */
.gdf3-steps { display: flex; flex-direction: column; gap: 10px; }
.gdf3-step {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gdf3-bg-alt); padding: 10px; border-radius: var(--gdf3-radius-sm);
  border-left: 3px solid var(--gdf3-primary);
}
.gdf3-step-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--gdf3-primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.gdf3-step-body strong { display: block; font-size: 1.3rem; color: var(--gdf3-text); margin-bottom: 2px; }
.gdf3-step-body span { font-size: 1.2rem; color: var(--gdf3-text-muted); }

/* ---------- Inline promo CTA ---------- */
.gdf3-cta {
  background: linear-gradient(135deg, var(--gdf3-primary-dark) 0%, var(--gdf3-primary) 100%);
  border-radius: var(--gdf3-radius); padding: 16px; text-align: center; margin-top: 14px;
  box-shadow: 0 6px 18px rgba(34,139,34,.35);
}
.gdf3-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.gdf3-cta p { color: #eafaea; font-size: 1.2rem; margin-bottom: 10px; }
.gdf3-promo-link { color: var(--gdf3-accent); font-weight: 800; border-bottom: 1px dashed var(--gdf3-accent); }

/* ---------- Winners ---------- */
.gdf3-winners { display: flex; flex-direction: column; gap: 8px; }
.gdf3-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--gdf3-bg-alt); padding: 8px 10px; border-radius: var(--gdf3-radius-sm);
}
.gdf3-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gdf3-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight: 800; }
.gdf3-winner-info { flex: 1; min-width: 0; }
.gdf3-winner-name { font-size: 1.2rem; font-weight: 700; color: var(--gdf3-text); }
.gdf3-winner-game { font-size: 1.1rem; color: var(--gdf3-text-muted); }
.gdf3-winner-amount { font-size: 1.3rem; font-weight: 800; color: var(--gdf3-accent); }

/* ---------- Payment methods ---------- */
.gdf3-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gdf3-pay {
  background: #fff; border-radius: var(--gdf3-radius-sm); padding: 8px; text-align: center;
  font-size: 1rem; font-weight: 800; color: #0D1117; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Testimonials ---------- */
.gdf3-testimonials { display: flex; flex-direction: column; gap: 8px; }
.gdf3-testimonial { background: var(--gdf3-bg-alt); padding: 10px; border-radius: var(--gdf3-radius-sm); border-left: 3px solid var(--gdf3-accent); }
.gdf3-testimonial-stars { color: var(--gdf3-accent); font-size: 1.1rem; margin-bottom: 4px; }
.gdf3-testimonial p { font-size: 1.2rem; color: var(--gdf3-text); margin-bottom: 4px; }
.gdf3-testimonial cite { font-size: 1.1rem; color: var(--gdf3-text-muted); font-style: normal; }

/* ---------- App download CTA ---------- */
.gdf3-app-cta { display: flex; gap: 10px; align-items: center; background: var(--gdf3-bg-alt); padding: 12px; border-radius: var(--gdf3-radius); border: 1px solid var(--gdf3-primary); }
.gdf3-app-icon { font-size: 3.2rem; color: var(--gdf3-primary-light); }
.gdf3-app-body h3 { font-size: 1.4rem; color: var(--gdf3-text); margin-bottom: 4px; }
.gdf3-app-body p { font-size: 1.15rem; color: var(--gdf3-text-muted); margin-bottom: 6px; }
.gdf3-app-buttons { display: flex; gap: 6px; }

/* ---------- Footer ---------- */
.gdf3-footer { background: var(--gdf3-bg-alt); border-top: 1px solid var(--gdf3-border); margin-top: 22px; padding: 16px 0 calc(var(--gdf3-bottomnav-h) + 16px); }
.gdf3-footer-brand { font-size: 1.3rem; color: var(--gdf3-text-muted); margin-bottom: 10px; }
.gdf3-footer-promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.gdf3-footer-promos button { width: 100%; }
.gdf3-footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.gdf3-footer-links a { font-size: 1.15rem; color: var(--gdf3-primary-light); }
.gdf3-footer-copy { margin-top: 10px; font-size: 1.1rem; color: var(--gdf3-text-muted); text-align: center; }

/* ---------- Bottom nav ---------- */
.gdf3-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--gdf3-bottomnav-h);
  background: linear-gradient(180deg, #0f161e 0%, #0D1117 100%);
  border-top: 1px solid var(--gdf3-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.gdf3-bottomnav button, .gdf3-bottomnav a {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--gdf3-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; cursor: pointer; padding: 6px 2px;
  transition: color .12s ease, transform .12s ease;
  position: relative;
}
.gdf3-bottomnav button:active, .gdf3-bottomnav a:active { transform: scale(.9); }
.gdf3-bottomnav .gdf3-bn-icon { font-size: 2.2rem; line-height: 1; }
.gdf3-bottomnav .gdf3-bn-label { font-size: 1rem; font-weight: 700; }
.gdf3-bottomnav .gdf3-active { color: var(--gdf3-primary-light); }
.gdf3-bottomnav .gdf3-active::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px;
  background: var(--gdf3-primary-light); border-radius: 0 0 4px 4px;
}
.gdf3-bn-badge {
  position: absolute; top: 4px; right: 18px; background: var(--gdf3-danger);
  color: #fff; font-size: .9rem; font-weight: 800; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Desktop hide bottomnav ---------- */
@media (min-width: 769px) {
  .gdf3-bottomnav { display: none; }
  .gdf3-footer { padding-bottom: 16px; }
  .gdf3-wrapper { padding-bottom: 24px; }
}

/* ---------- Mobile bottom padding safety ---------- */
@media (max-width: 768px) {
  .gdf3-wrapper { padding-bottom: calc(var(--gdf3-bottomnav-h) + 18px); }
}
