/* bee999 - bee999.cfd base CSS. Prefix: pgbf-. English comments only. */
:root {
  --pgbf-primary: #DAA520;      /* goldenrod */
  --pgbf-secondary: #A0522D;    /* sienna */
  --pgbf-accent: #B8860B;       /* dark goldenrod */
  --pgbf-bg: #1C2833;           /* dark slate background */
  --pgbf-bg-2: #243447;         /* slightly lighter panel */
  --pgbf-text: #EEE8AA;         /* pale goldenrod text */
  --pgbf-text-muted: #C9BFA0;
  --pgbf-card: #2A3B4F;
  --pgbf-border: #3C4F66;
  --pgbf-white: #FFFFFF;
  --pgbf-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pgbf-bg);
  color: var(--pgbf-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--pgbf-primary); text-decoration: none; }
a:hover { color: var(--pgbf-text); text-decoration: underline; }

.pgbf-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--pgbf-bg);
  overflow-x: hidden;
}

/* ===== Header ===== */
.pgbf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(135deg, #1C2833 0%, #243447 100%);
  border-bottom: 2px solid var(--pgbf-accent);
  box-shadow: var(--pgbf-shadow);
}
.pgbf-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.pgbf-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.pgbf-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pgbf-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pgbf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pgbf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  min-height: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pgbf-btn:active { transform: scale(0.96); }
.pgbf-btn-login {
  background: transparent;
  color: var(--pgbf-text);
  border: 1px solid var(--pgbf-primary);
}
.pgbf-btn-register {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  color: #1C2833;
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
}
.pgbf-icon-btn {
  background: transparent;
  border: none;
  color: var(--pgbf-text);
  font-size: 1.9rem;
  cursor: pointer;
  padding: 0.3rem;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
}
.pgbf-icon-btn:active { background: rgba(218, 165, 32, 0.15); }

/* ===== Mobile menu ===== */
.pgbf-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 340px;
  height: 100%;
  background: var(--pgbf-bg-2);
  z-index: 9999;
  padding: 5rem 1.2rem 2rem;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 1px solid var(--pgbf-border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.45);
}
.pgbf-mobile-menu.pgbf-menu-open { right: 0; }
.pgbf-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--pgbf-text);
  font-size: 2rem;
  cursor: pointer;
}
.pgbf-mobile-menu h3 {
  font-size: 1.4rem;
  color: var(--pgbf-primary);
  margin: 1.2rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pgbf-mobile-menu a {
  display: block;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--pgbf-border);
  color: var(--pgbf-text);
  font-size: 1.35rem;
}
.pgbf-mobile-menu a:hover { background: rgba(218, 165, 32, 0.12); text-decoration: none; }
.pgbf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}
.pgbf-overlay.pgbf-menu-open { display: block; }

/* ===== Hero / Carousel ===== */
.pgbf-hero {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--pgbf-shadow);
}
.pgbf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}
.pgbf-hero-slide.pgbf-slide-active { opacity: 1; }
.pgbf-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pgbf-hero-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent, rgba(28, 40, 51, 0.85));
  padding: 0.6rem 0.4rem 0;
}
.pgbf-hero-text h2 { margin: 0 0 0.2rem; font-size: 1.7rem; color: var(--pgbf-primary); }
.pgbf-hero-text p { margin: 0; font-size: 1.15rem; color: var(--pgbf-text); }
.pgbf-hero-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pgbf-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(238, 232, 170, 0.4);
  cursor: pointer;
}
.pgbf-hero-dot.pgbf-dot-active { background: var(--pgbf-primary); }

/* ===== Promo CTA strip ===== */
.pgbf-cta {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  max-width: 430px;
  margin: 0 auto;
}
.pgbf-cta .pgbf-btn { flex: 1; justify-content: center; }

/* ===== Category tabs ===== */
.pgbf-cats {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  overflow-x: auto;
  max-width: 430px;
  margin: 0 auto;
  scrollbar-width: none;
}
.pgbf-cats::-webkit-scrollbar { display: none; }
.pgbf-cat-tab {
  flex: 0 0 auto;
  padding: 0.45rem 1rem;
  background: var(--pgbf-card);
  color: var(--pgbf-text);
  border-radius: 999px;
  border: 1px solid var(--pgbf-border);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
.pgbf-cat-tab.pgbf-cat-active {
  background: var(--pgbf-primary);
  color: #1C2833;
  border-color: var(--pgbf-primary);
  font-weight: 600;
}

/* ===== Section title ===== */
.pgbf-section {
  padding: 0.6rem 0.8rem;
  max-width: 430px;
  margin: 0 auto;
}
.pgbf-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.45rem;
  color: var(--pgbf-primary);
  font-weight: 700;
  margin: 0.8rem 0 0.5rem;
  border-left: 4px solid var(--pgbf-secondary);
  padding-left: 0.6rem;
}

/* ===== Game grid ===== */
.pgbf-game-group { padding: 0.2rem 0; }
.pgbf-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.pgbf-game-card {
  background: var(--pgbf-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pgbf-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pgbf-game-card:active { transform: scale(0.96); }
.pgbf-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}
.pgbf-game-name {
  font-size: 1.05rem;
  color: var(--pgbf-text);
  text-align: center;
  padding: 0.3rem 0.25rem 0.4rem;
  line-height: 1.25;
  min-height: 2.6em;
  overflow: hidden;
}

/* ===== SEO content ===== */
.pgbf-content {
  padding: 1rem 0.9rem 0.5rem;
  max-width: 430px;
  margin: 0 auto;
  color: var(--pgbf-text);
  font-size: 1.35rem;
  line-height: 1.6;
}
.pgbf-content h2 {
  color: var(--pgbf-primary);
  font-size: 1.5rem;
  margin: 1.2rem 0 0.5rem;
}
.pgbf-content p { margin: 0 0 0.7rem; }
.pgbf-content a { color: var(--pgbf-primary); text-decoration: underline; }

/* ===== Footer ===== */
.pgbf-footer {
  background: var(--pgbf-bg-2);
  border-top: 2px solid var(--pgbf-accent);
  padding: 1.2rem 0.9rem 1rem;
  max-width: 430px;
  margin: 1rem auto 0;
  color: var(--pgbf-text-muted);
}
.pgbf-footer h4 {
  color: var(--pgbf-primary);
  font-size: 1.3rem;
  margin: 0.6rem 0 0.3rem;
}
.pgbf-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.8rem;
  font-size: 1.2rem;
}
.pgbf-footer-links a { color: var(--pgbf-text); }
.pgbf-footer-bottom {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--pgbf-border);
  color: var(--pgbf-text-muted);
}

/* ===== Mobile bottom nav ===== */
.pgbf-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #243447, #1C2833);
  border-top: 2px solid var(--pgbf-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
}
.pgbf-bottomnav button, .pgbf-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 58px;
  background: transparent;
  border: none;
  color: var(--pgbf-text-muted);
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.pgbf-bottomnav button:active, .pgbf-bottomnav a:active { transform: scale(0.92); }
.pgbf-bottomnav .pgbf-nav-icon { font-size: 2.1rem; line-height: 1; }
.pgbf-bottomnav .material-icons.pgbf-nav-icon { font-size: 22px; }
.pgbf-bottomnav .pgbf-nav-label { font-size: 1rem; }
.pgbf-bottomnav button.pgbf-nav-promo, .pgbf-bottomnav a.pgbf-nav-promo {
  color: var(--pgbf-primary);
}
.pgbf-bottomnav a.pgbf-nav-current { color: var(--pgbf-primary); }

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  .pgbf-bottomnav { display: none; }
}

/* ===== Mobile bottom padding for nav clearance ===== */
@media (max-width: 768px) {
  main.pgbf-main { padding-bottom: 80px; }
}
