/* ============================================================
 * GG Panalo APK - layout.css
 * All custom classes use the gbdf- prefix.
 * Palette: #6C757D | #3A3A3A | #20B2AA | #008B8B | #FA8072 | #00B8D4
 * Dark colors as backgrounds, light colors as text.
 * Mobile-first: max-width 430px primary target.
 * ============================================================ */

:root {
  --gbdf-bg: #0f1419;
  --gbdf-bg-2: #1a2230;
  --gbdf-bg-3: #232f42;
  --gbdf-surface: #2a3950;
  --gbdf-primary: #20B2AA;
  --gbdf-primary-2: #008B8B;
  --gbdf-accent: #FA8072;
  --gbdf-info: #00B8D4;
  --gbdf-muted: #6C757D;
  --gbdf-dark: #3A3A3A;
  --gbdf-text: #f4f7fb;
  --gbdf-text-dim: #c5cfde;
  --gbdf-gold: #ffd479;
  --gbdf-radius: 14px;
  --gbdf-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --gbdf-header-h: 60px;
  --gbdf-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 10%, #1b3a47 0%, var(--gbdf-bg) 55%);
  color: var(--gbdf-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gbdf-info); text-decoration: none; }
a:hover { color: var(--gbdf-primary); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.5rem; font-weight: 800; color: #fff; }
h1 { font-size: 2.6rem; line-height: 3rem; }
h2 { font-size: 2.1rem; line-height: 2.6rem; }
h3 { font-size: 1.7rem; line-height: 2.2rem; }
p  { margin: 0 0 1.2rem; color: var(--gbdf-text-dim); }

/* ---------- Layout containers ---------- */
.gbdf-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.gbdf-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.gbdf-main {
  flex: 1;
  padding-top: calc(var(--gbdf-header-h) + 10px);
  padding-bottom: calc(var(--gbdf-bottomnav-h) + 20px);
}

/* ---------- Header ---------- */
.gbdf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--gbdf-header-h);
  background: linear-gradient(90deg, #102027 0%, #0d2a30 100%);
  border-bottom: 2px solid var(--gbdf-primary-2);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.gbdf-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gbdf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.gbdf-logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
}
.gbdf-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2rem;
}
.gbdf-logo-text span { color: var(--gbdf-primary); }
.gbdf-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gbdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  text-decoration: none;
  min-height: 36px;
  font-family: inherit;
}
.gbdf-btn:hover { transform: translateY(-1px); }
.gbdf-btn:active { transform: translateY(0); }
.gbdf-btn--primary {
  background: linear-gradient(135deg, var(--gbdf-primary) 0%, var(--gbdf-primary-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(32, 178, 170, 0.45);
}
.gbdf-btn--accent {
  background: linear-gradient(135deg, var(--gbdf-accent) 0%, #e26754 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(250, 128, 114, 0.4);
}
.gbdf-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.gbdf-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}
.gbdf-icon-btn--active { background: rgba(32,178,170,0.18); }

/* ---------- Mobile slide-down menu ---------- */
.gbdf-mobile-menu {
  position: fixed;
  top: var(--gbdf-header-h);
  left: 0; right: 0;
  background: #0d1820;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px 18px;
  transform: translateY(-130%);
  transition: transform .25s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}
.gbdf-mobile-menu--open { transform: translateY(0); }
.gbdf-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--gbdf-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.gbdf-mobile-menu a:hover { color: var(--gbdf-primary); }

/* ---------- Hero ---------- */
.gbdf-hero {
  position: relative;
  border-radius: var(--gbdf-radius);
  overflow: hidden;
  margin: 14px 0;
  box-shadow: var(--gbdf-shadow);
}
.gbdf-hero-track { position: relative; }
.gbdf-hero-slide {
  position: relative;
  display: none;
  background: linear-gradient(120deg, #0a3540 0%, #1c5566 50%, #b14433 100%);
}
.gbdf-hero-slide--active { display: block; }
.gbdf-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.55;
}
.gbdf-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}
.gbdf-hero-caption h2 {
  color: #fff;
  font-size: 2.2rem;
  line-height: 2.4rem;
  margin: 0;
}
.gbdf-hero-caption p { color: #fff; margin: 0; font-size: 1.3rem; }
.gbdf-hero-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.gbdf-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.gbdf-hero-dot--active { background: var(--gbdf-primary); width: 20px; border-radius: 4px; }

/* ---------- Marquee notice ---------- */
.gbdf-notice {
  background: rgba(0,184,212,0.12);
  border: 1px solid rgba(0,184,212,0.35);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: var(--gbdf-text-dim);
}
.gbdf-notice .material-icons-outlined { color: var(--gbdf-info); font-size: 18px; }

/* ---------- Section / heading ---------- */
.gbdf-section {
  margin: 22px 0;
}
.gbdf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gbdf-section-head h2 {
  font-size: 1.8rem;
  line-height: 2.2rem;
  margin: 0;
}
.gbdf-section-head .gbdf-link { font-size: 1.2rem; color: var(--gbdf-info); font-weight: 600; }

/* ---------- Filter tabs ---------- */
.gbdf-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 10px;
  scrollbar-width: none;
}
.gbdf-filter-bar::-webkit-scrollbar { display: none; }
.gbdf-filter-tab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--gbdf-text-dim);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.gbdf-filter-tab--active {
  background: linear-gradient(135deg, var(--gbdf-primary) 0%, var(--gbdf-primary-2) 100%);
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.gbdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gbdf-card {
  background: var(--gbdf-bg-2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform .15s;
}
.gbdf-card:hover { transform: translateY(-2px); }
.gbdf-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gbdf-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gbdf-card-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--gbdf-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.gbdf-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity .2s;
}
.gbdf-card:hover .gbdf-card-play { opacity: 1; }
.gbdf-card-play span {
  background: var(--gbdf-primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.15rem;
  font-weight: 700;
}
.gbdf-card-title {
  padding: 6px 6px 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gbdf-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Featured / promo banners ---------- */
.gbdf-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.gbdf-feature-card {
  background: linear-gradient(135deg, #1c5566 0%, #008B8B 100%);
  border-radius: var(--gbdf-radius);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.gbdf-feature-card h3 { color: #fff; font-size: 1.4rem; margin: 0 0 4px; }
.gbdf-feature-card p { color: rgba(255,255,255,0.85); margin: 0 0 8px; font-size: 1.15rem; }
.gbdf-feature-card--gold {
  background: linear-gradient(135deg, #b14433 0%, #FA8072 100%);
}

/* ---------- SEO content section ---------- */
.gbdf-seo {
  background: var(--gbdf-bg-2);
  border-radius: var(--gbdf-radius);
  padding: 16px;
  margin: 18px 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.gbdf-seo h2 { color: var(--gbdf-primary); font-size: 1.8rem; }
.gbdf-seo h3 { color: #fff; font-size: 1.5rem; margin-top: 1rem; }
.gbdf-seo p { font-size: 1.3rem; line-height: 1.7rem; }
.gbdf-seo ul { padding-left: 18px; margin: 0 0 1rem; }
.gbdf-seo li { color: var(--gbdf-text-dim); margin-bottom: 4px; font-size: 1.25rem; line-height: 1.6rem; }
.gbdf-seo strong { color: var(--gbdf-gold); }

/* ---------- FAQ ---------- */
.gbdf-faq-item {
  background: var(--gbdf-bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.gbdf-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  font-size: 1.3rem;
}
.gbdf-faq-q .bi { transition: transform .2s; color: var(--gbdf-primary); }
.gbdf-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
}
.gbdf-faq-item--open .gbdf-faq-a {
  max-height: 400px;
  padding-bottom: 12px;
}
.gbdf-faq-item--open .gbdf-faq-q .bi { transform: rotate(45deg); }
.gbdf-faq-a p { margin: 0; font-size: 1.2rem; }

/* ---------- CTA strip ---------- */
.gbdf-cta {
  background: linear-gradient(120deg, #008B8B 0%, #20B2AA 50%, #FA8072 100%);
  border-radius: var(--gbdf-radius);
  padding: 16px;
  text-align: center;
  margin: 18px 0;
  color: #fff;
}
.gbdf-cta h3 { color: #fff; margin-bottom: 4px; }
.gbdf-cta p { color: rgba(255,255,255,0.9); margin-bottom: 10px; font-size: 1.2rem; }
.gbdf-cta .gbdf-btn { background: #fff; color: var(--gbdf-primary-2); }

/* ---------- Footer ---------- */
.gbdf-footer {
  background: #0a1219;
  padding: 20px 14px 16px;
  margin-top: 24px;
  border-top: 2px solid var(--gbdf-primary-2);
}
.gbdf-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.gbdf-footer-col h4 {
  color: var(--gbdf-primary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.gbdf-footer-col a {
  display: block;
  color: var(--gbdf-text-dim);
  font-size: 1.15rem;
  padding: 3px 0;
}
.gbdf-footer-brand p { font-size: 1.15rem; line-height: 1.5rem; }
.gbdf-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.gbdf-footer-promos .gbdf-btn { font-size: 1.1rem; padding: 6px 10px; min-height: 30px; }
.gbdf-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gbdf-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Mobile bottom nav ---------- */
.gbdf-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--gbdf-bottomnav-h);
  background: linear-gradient(180deg, #0d2a30 0%, #061018 100%);
  border-top: 2px solid var(--gbdf-primary-2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.gbdf-bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--gbdf-text-dim);
  text-decoration: none;
  background: none;
  border: none;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s;
}
.gbdf-bottomnav-item--active { color: var(--gbdf-primary); }
.gbdf-bottomnav-item--promo { color: var(--gbdf-accent); }
.gbdf-bottomnav-item .material-icons,
.gbdf-bottomnav-item .fas,
.gbdf-bottomnav-item .bi,
.gbdf-bottomnav-item ion-icon { font-size: 22px; }
.gbdf-bottomnav-item span.label { font-size: 10px; font-weight: 600; }
.gbdf-bottomnav-item--promo span.label { color: var(--gbdf-gold); }
.gbdf-bottomnav-item:hover { color: var(--gbdf-primary); }

/* ---------- Utilities ---------- */
.gbdf-text-link { color: var(--gbdf-info); font-weight: 700; }
.gbdf-text-link--gold { color: var(--gbdf-gold); font-weight: 700; }
.gbdf-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }
.gbdf-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0,184,212,0.15);
  color: var(--gbdf-info);
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: radial-gradient(circle at 30% 0%, #1b3a47 0%, var(--gbdf-bg) 60%); }
  .gbdf-container { max-width: 760px; padding: 0 20px; }
  .gbdf-header-inner { max-width: 760px; }
  .gbdf-bottomnav { display: none; }
  .gbdf-main { padding-bottom: 30px; }
  .gbdf-grid { grid-template-columns: repeat(5, 1fr); }
  .gbdf-feature { grid-template-columns: repeat(3, 1fr); }
  .gbdf-hero-slide img { height: 320px; }
  .gbdf-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .gbdf-main { padding-bottom: calc(var(--gbdf-bottomnav-h) + 16px); }
}

@media (max-width: 360px) {
  .gbdf-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.2rem; }
}
