/* ============================================================
   nnok.homes - Core base stylesheet
   Palette: #C0C0C0 / #36454F / #2C2C2C / #F5F5F5
   All custom classes use the "gfb4-" prefix
   ============================================================ */

:root {
  --gfb4-primary: #C0C0C0;
  --gfb4-bg: #2C2C2C;
  --gfb4-bg-soft: #36454F;
  --gfb4-text: #F5F5F5;
  --gfb4-text-dim: rgba(245, 245, 245, 0.72);
  --gfb4-accent: #E8B923;
  --gfb4-accent-2: #D94F4F;
  --gfb4-border: rgba(192, 192, 192, 0.25);
  --gfb4-radius: 14px;
  --gfb4-radius-sm: 10px;
  --gfb4-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  --gfb4-header-h: 58px;
  --gfb4-bottomnav-h: 62px;
  --gfb4-maxw: 430px;
}

/* Root font: 62.5% -> 1rem = 10px */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--gfb4-bg);
  color: var(--gfb4-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.gfb4-no-scroll { overflow: hidden; }

a { color: var(--gfb4-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.8rem; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; }

/* ============================================================
   Layout
   ============================================================ */
.gfb4-wrapper {
  max-width: var(--gfb4-maxw);
  margin: 0 auto;
  position: relative;
}

.gfb4-container {
  padding: 1.2rem 1.2rem 0;
}

main.gfb4-main {
  padding-top: calc(var(--gfb4-header-h) + 0.6rem);
  padding-bottom: 1rem;
}

/* ============================================================
   Header
   ============================================================ */
.gfb4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2C2C2C 0%, #1f1f1f 100%);
  border-bottom: 1px solid var(--gfb4-border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.4);
  transition: padding .25s ease, background .25s ease;
}
.gfb4-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.55); }

.gfb4-header-inner {
  max-width: var(--gfb4-maxw);
  margin: 0 auto;
  height: var(--gfb4-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.8rem;
}

.gfb4-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gfb4-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: .3px;
}
.gfb4-logo img { width: 28px; height: 28px; border-radius: 6px; }
.gfb4-logo span { color: var(--gfb4-accent); }

.gfb4-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gfb4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--gfb4-radius-sm);
  padding: 0.7rem 1rem;
  font-size: 1.3rem;
  min-height: 38px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  text-decoration: none;
  color: var(--gfb4-text);
}
.gfb4-btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.gfb4-btn:active { transform: scale(0.97); }

.gfb4-btn-register {
  background: linear-gradient(135deg, #E8B923 0%, #D89400 100%);
  color: #2C2C2C;
}
.gfb4-btn-login {
  background: transparent;
  color: var(--gfb4-text);
  border: 1px solid var(--gfb4-primary);
}
.gfb4-btn-promo {
  background: linear-gradient(135deg, #D94F4F 0%, #B5302F 100%);
  color: #fff;
}
.gfb4-btn-block { width: 100%; }
.gfb4-btn-lg { padding: 1rem 1.4rem; font-size: 1.5rem; min-height: 46px; }

.gfb4-menu-toggle {
  background: transparent;
  border: 1px solid var(--gfb4-border);
  color: var(--gfb4-text);
  width: 38px; height: 38px;
  border-radius: var(--gfb4-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.7rem;
}

/* ============================================================
   Mobile slide-down menu
   ============================================================ */
.gfb4-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: #1c1c1c;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .3s ease;
  padding: calc(var(--gfb4-header-h) + 1rem) 1.2rem 1.2rem;
  overflow-y: auto;
  border-left: 1px solid var(--gfb4-border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.5);
}
.gfb4-mobile-menu.gfb4-menu-open { transform: translateX(0); }

.gfb4-mobile-menu h4 {
  color: var(--gfb4-accent);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1rem 0 0.5rem;
}
.gfb4-mobile-menu a {
  display: block;
  color: var(--gfb4-text);
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid rgba(192,192,192,0.12);
  font-size: 1.4rem;
}
.gfb4-mobile-menu a:hover { background: rgba(192,192,192,0.08); text-decoration: none; }

.gfb4-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.gfb4-mobile-menu.gfb4-menu-open ~ .gfb4-menu-overlay,
body.gfb4-no-scroll .gfb4-menu-overlay {
  opacity: 1; visibility: visible;
}

/* ============================================================
   Hero carousel
   ============================================================ */
.gfb4-hero {
  position: relative;
  border-radius: var(--gfb4-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--gfb4-shadow);
}
.gfb4-hero-track { position: relative; }
.gfb4-hero-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.gfb4-hero-slide.gfb4-active { display: block; }
.gfb4-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gfb4-hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
  color: #fff;
}
.gfb4-hero-caption strong { font-size: 1.6rem; display: block; }
.gfb4-hero-caption span { font-size: 1.25rem; color: var(--gfb4-accent); font-weight: 600; }
.gfb4-hero-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.gfb4-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245,245,245,0.5);
  border: 0; padding: 0; cursor: pointer;
}
.gfb4-hero-dot.gfb4-active { background: var(--gfb4-accent); width: 18px; border-radius: 5px; }

/* ============================================================
   Section
   ============================================================ */
.gfb4-section {
  margin: 1.4rem 0;
  padding: 0;
}
.gfb4-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 1.6rem;
  color: var(--gfb4-text);
  border-left: 4px solid var(--gfb4-accent);
  padding-left: 0.8rem;
}
.gfb4-section-title i, .gfb4-section-title .material-icons-outlined {
  color: var(--gfb4-accent);
  font-size: 20px;
}
.gfb4-section-title small {
  margin-left: auto;
  font-size: 1.15rem;
  color: var(--gfb4-text-dim);
  font-weight: 400;
}

/* ============================================================
   Game grid + cards
   ============================================================ */
.gfb4-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gfb4-grid-4 { grid-template-columns: repeat(4, 1fr); }

.gfb4-card {
  background: var(--gfb4-bg-soft);
  border-radius: var(--gfb4-radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
}
.gfb4-card:hover {
  transform: translateY(-2px);
  border-color: var(--gfb4-accent);
  text-decoration: none;
}
.gfb4-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a1a1a;
}
.gfb4-card-name {
  padding: 0.45rem 0.5rem;
  font-size: 1.15rem;
  color: var(--gfb4-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  line-height: 1.3;
}
.gfb4-card-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--gfb4-accent-2);
  color: #fff;
  font-size: 0.95rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.gfb4-card-hot .gfb4-card-badge { background: linear-gradient(135deg,#E8B923,#D89400); color:#2C2C2C; }

/* ============================================================
   Generic panels
   ============================================================ */
.gfb4-panel {
  background: var(--gfb4-bg-soft);
  border: 1px solid var(--gfb4-border);
  border-radius: var(--gfb4-radius);
  padding: 1.2rem;
  margin: 1rem 0;
}
.gfb4-panel p { color: var(--gfb4-text-dim); font-size: 1.3rem; line-height: 1.7; }

.gfb4-feature-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(192,192,192,0.1);
}
.gfb4-feature-row:last-child { border-bottom: 0; }
.gfb4-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,185,35,0.15);
  color: var(--gfb4-accent);
  flex-shrink: 0;
}
.gfb4-feature-row strong { color: var(--gfb4-text); font-size: 1.35rem; }
.gfb4-feature-row span { color: var(--gfb4-text-dim); font-size: 1.2rem; display: block; }

/* Stats */
.gfb4-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gfb4-stat {
  background: #232323;
  border-radius: var(--gfb4-radius-sm);
  padding: 0.8rem;
  text-align: center;
}
.gfb4-stat b { display: block; font-size: 1.8rem; color: var(--gfb4-accent); }
.gfb4-stat span { font-size: 1.1rem; color: var(--gfb4-text-dim); }

/* Testimonial */
.gfb4-testimonial {
  background: #232323;
  border-radius: var(--gfb4-radius-sm);
  padding: 0.9rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--gfb4-accent);
}
.gfb4-testimonial p { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--gfb4-text); }
.gfb4-testimonial small { color: var(--gfb4-text-dim); font-size: 1.1rem; }

/* Payment chips */
.gfb4-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.gfb4-chip {
  background: #232323;
  border: 1px solid var(--gfb4-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.15rem;
  color: var(--gfb4-text);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* CTA banner */
.gfb4-cta {
  background: linear-gradient(135deg, #36454F 0%, #2C2C2C 60%, #5a3a00 100%);
  border-radius: var(--gfb4-radius);
  padding: 1.3rem;
  text-align: center;
  margin: 1.2rem 0;
  border: 1px solid var(--gfb4-border);
}
.gfb4-cta h3 { color: var(--gfb4-accent); margin-bottom: 0.4rem; }
.gfb4-cta p { color: var(--gfb4-text-dim); margin-bottom: 0.9rem; font-size: 1.3rem; }

/* Winners ticker */
.gfb4-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: #232323;
  padding: 0.6rem 0.8rem;
  border-radius: var(--gfb4-radius-sm);
  margin-bottom: 0.5rem;
}
.gfb4-winner b { color: var(--gfb4-accent); margin-left: auto; }

/* Text link inline */
.gfb4-textlink {
  color: var(--gfb4-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* Article SEO content */
.gfb4-article p { color: var(--gfb4-text-dim); font-size: 1.32rem; line-height: 1.75; margin-bottom: 0.9rem; }
.gfb4-article h3 { color: var(--gfb4-text); margin-top: 1.2rem; }

/* ============================================================
   Footer
   ============================================================ */
.gfb4-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--gfb4-border);
  padding: 1.6rem 1.2rem;
  margin-top: 1.6rem;
  color: var(--gfb4-text-dim);
  font-size: 1.2rem;
}
.gfb4-footer h4 { color: var(--gfb4-text); margin: 0 0 0.6rem; font-size: 1.35rem; }
.gfb4-footer p { color: var(--gfb4-text-dim); line-height: 1.7; font-size: 1.2rem; }
.gfb4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem;
  margin: 0.6rem 0 1rem;
}
.gfb4-footer-links a {
  color: var(--gfb4-text-dim);
  font-size: 1.15rem;
}
.gfb4-footer-links a:hover { color: var(--gfb4-accent); }
.gfb4-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.gfb4-footer-copy {
  border-top: 1px solid rgba(192,192,192,0.12);
  padding-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--gfb4-text-dim);
}

/* ============================================================
   Mobile bottom nav
   ============================================================ */
.gfb4-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--gfb4-bottomnav-h);
  background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
  border-top: 1px solid var(--gfb4-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 4px 2px;
  box-shadow: 0 -3px 18px rgba(0,0,0,0.45);
}
.gfb4-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 54px;
  background: transparent;
  border: 0;
  color: var(--gfb4-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 4px 2px;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.gfb4-bottomnav-btn .material-icons-outlined,
.gfb4-bottomnav-btn i,
.gfb4-bottomnav-btn ion-icon {
  font-size: 22px;
}
.gfb4-bottomnav-btn ion-icon { font-size: 24px; }
.gfb4-bottomnav-btn:hover { color: var(--gfb4-text); }
.gfb4-bottomnav-btn:active { transform: scale(0.92); }
.gfb4-bottomnav-btn.gfb4-active { color: var(--gfb4-accent); }
.gfb4-bottomnav-btn.gfb4-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--gfb4-accent);
  border-radius: 0 0 4px 4px;
}
.gfb4-bottomnav-center {
  position: relative;
  top: -16px;
}
.gfb4-bottomnav-center .gfb4-bottomnav-btn {
  background: linear-gradient(135deg, #E8B923 0%, #D89400 100%);
  color: #2C2C2C;
  width: 56px; height: 56px;
  border-radius: 50%;
  min-width: 56px;
  box-shadow: 0 4px 14px rgba(232,185,35,0.45);
  flex: 0 0 auto;
}
.gfb4-bottomnav-center .gfb4-bottomnav-btn ion-icon { font-size: 28px; }

.gfb4-bottomnav-badge {
  position: absolute;
  top: 2px; right: 14px;
  background: var(--gfb4-accent-2);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ============================================================
   Desktop: hide bottom nav, widen layout
   ============================================================ */
@media (min-width: 769px) {
  .gfb4-bottomnav { display: none; }
  .gfb4-wrapper { max-width: 720px; }
  .gfb4-grid { grid-template-columns: repeat(5, 1fr); }
  .gfb4-grid-4 { grid-template-columns: repeat(6, 1fr); }
  main.gfb4-main { padding-bottom: 2rem; }
}

/* Mobile: keep content above bottom nav */
@media (max-width: 768px) {
  main.gfb4-main { padding-bottom: calc(var(--gfb4-bottomnav-h) + 18px); }
  .gfb4-footer { padding-bottom: calc(var(--gfb4-bottomnav-h) + 18px); }
}

/* Utility */
.gfb4-text-center { text-align: center; }
.gfb4-mt-1 { margin-top: 0.6rem; }
.gfb4-mt-2 { margin-top: 1.2rem; }
.gfb4-hidden { display: none !important; }
.gfb4-row { display: flex; gap: 0.6rem; align-items: center; }
.gfb4-row-wrap { flex-wrap: wrap; }
