/**
 * VBB8 Main Stylesheet
 * Mobile-first gaming website - vbb8.click
 * All classes use pg45- prefix for namespace isolation
 * Color palette: #00B8D4 | #00695C | #273746 | #00E5FF
 */

/* CSS Variables */
:root {
  --pg45-primary: #00B8D4;
  --pg45-secondary: #00695C;
  --pg45-bg: #273746;
  --pg45-bg-dark: #1a2632;
  --pg45-accent: #00E5FF;
  --pg45-text: #e8f4f8;
  --pg45-text-muted: #94b8c4;
  --pg45-card-bg: #2c3e50;
  --pg45-card-hover: #34495e;
  --pg45-border: #3d566e;
  --pg45-success: #00E676;
  --pg45-warning: #FFD600;
  --pg45-radius: 8px;
  --pg45-radius-lg: 12px;
  --pg45-header-h: 56px;
  --pg45-bnav-h: 60px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Bengali', sans-serif;
  background: var(--pg45-bg-dark);
  color: var(--pg45-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg45-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.pg45-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: var(--pg45-header-h);
  background: linear-gradient(135deg, var(--pg45-bg) 0%, #1e3044 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
  border-bottom: 2px solid var(--pg45-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.pg45-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.pg45-logo-area img { width: 32px; height: 32px; border-radius: 6px; }
.pg45-logo-area span { font-size: 1.8rem; font-weight: 700; color: var(--pg45-accent); letter-spacing: 1px; }
.pg45-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.pg45-btn-register, .pg45-btn-login {
  padding: 0.6rem 1.4rem; border-radius: var(--pg45-radius); font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.pg45-btn-register {
  background: linear-gradient(135deg, var(--pg45-primary), var(--pg45-accent));
  color: var(--pg45-bg-dark);
}
.pg45-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(0,229,255,0.4); }
.pg45-btn-login {
  background: transparent; color: var(--pg45-accent);
  border: 1.5px solid var(--pg45-primary);
}
.pg45-btn-login:hover { background: rgba(0,184,212,0.1); }
.pg45-menu-toggle {
  background: none; border: none; color: var(--pg45-accent);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* Mobile Menu */
.pg45-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.pg45-overlay-active { display: block; }
.pg45-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--pg45-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem; overflow-y: auto;
}
.pg45-menu-active { right: 0; }
.pg45-mobile-menu .pg45-menu-close {
  background: none; border: none; color: var(--pg45-text);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.pg45-mobile-menu ul { margin-top: 3rem; }
.pg45-mobile-menu li { margin-bottom: 0.4rem; }
.pg45-mobile-menu a {
  display: block; padding: 1rem 1.2rem; color: var(--pg45-text);
  font-size: 1.4rem; border-radius: var(--pg45-radius); transition: all 0.2s;
}
.pg45-mobile-menu a:hover { background: rgba(0,184,212,0.15); color: var(--pg45-accent); }

/* Main Content */
.pg45-main { padding-top: calc(var(--pg45-header-h) + 0.8rem); padding-bottom: 1rem; }
@media (max-width: 768px) {
  .pg45-main { padding-bottom: calc(var(--pg45-bnav-h) + 1.2rem); }
}

/* Carousel */
.pg45-carousel { position: relative; width: 100%; aspect-ratio: 16/7; overflow: hidden; border-radius: var(--pg45-radius-lg); margin-bottom: 1.2rem; }
.pg45-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; cursor: pointer; }
.pg45-slide-active { opacity: 1; }
.pg45-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg45-slide-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.pg45-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.pg45-dot-active { background: var(--pg45-accent); transform: scale(1.3); }

/* Sections */
.pg45-section { padding: 1.2rem; margin-bottom: 0.8rem; }
.pg45-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--pg45-accent);
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg45-primary); display: flex; align-items: center; gap: 0.6rem;
}

/* Game Grid */
.pg45-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.pg45-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.pg45-game-item:hover { transform: translateY(-3px); }
.pg45-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pg45-radius);
  border: 2px solid var(--pg45-border); transition: border-color 0.2s;
}
.pg45-game-item:hover img { border-color: var(--pg45-primary); }
.pg45-game-name { font-size: 1.1rem; color: var(--pg45-text-muted); margin-top: 0.4rem; line-height: 1.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category Label */
.pg45-cat-label {
  font-size: 1.5rem; font-weight: 700; color: var(--pg45-primary);
  margin: 1.2rem 0 0.8rem; padding-left: 1rem;
  border-left: 4px solid var(--pg45-accent);
}

/* Cards */
.pg45-card {
  background: var(--pg45-card-bg); border-radius: var(--pg45-radius-lg);
  padding: 1.4rem; margin-bottom: 1rem; border: 1px solid var(--pg45-border);
}
.pg45-card h3 { font-size: 1.4rem; color: var(--pg45-accent); margin-bottom: 0.8rem; }
.pg45-card p { font-size: 1.3rem; color: var(--pg45-text-muted); line-height: 1.6rem; }

/* Promo Button */
.pg45-promo-btn {
  display: inline-block; padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--pg45-primary), var(--pg45-accent));
  color: var(--pg45-bg-dark); font-weight: 700; font-size: 1.3rem;
  border-radius: var(--pg45-radius); cursor: pointer; border: none;
  transition: all 0.2s; text-align: center;
}
.pg45-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(0,229,255,0.4); }

/* Promo Text Link */
.pg45-promo-link { color: var(--pg45-accent); font-weight: 600; cursor: pointer; text-decoration: underline; }
.pg45-promo-link:hover { color: var(--pg45-primary); }

/* Footer */
.pg45-footer {
  background: var(--pg45-bg-dark); padding: 2rem 1.2rem 1.5rem;
  border-top: 2px solid var(--pg45-primary); margin-top: 2rem;
}
.pg45-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.pg45-footer-brand p { font-size: 1.2rem; color: var(--pg45-text-muted); margin-top: 0.6rem; line-height: 1.5rem; }
.pg45-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.2rem; }
.pg45-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.2rem; }
.pg45-footer-links a { color: var(--pg45-text-muted); font-size: 1.2rem; }
.pg45-footer-links a:hover { color: var(--pg45-accent); }
.pg45-footer-copy { text-align: center; font-size: 1.1rem; color: var(--pg45-text-muted); border-top: 1px solid var(--pg45-border); padding-top: 1rem; }

/* Bottom Nav */
.pg45-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pg45-bnav-h);
  background: linear-gradient(180deg, #1a2f3f 0%, #0f1f2d 100%);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; border-top: 2px solid var(--pg45-primary);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.pg45-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; background: none; border: none;
  color: var(--pg45-text-muted); cursor: pointer; transition: all 0.2s;
  position: relative;
}
.pg45-bnav-btn:hover, .pg45-bnav-active { color: var(--pg45-accent); transform: scale(1.08); }
.pg45-bnav-btn .pg45-bnav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.pg45-bnav-btn .pg45-bnav-label { font-size: 1rem; font-weight: 500; }
.pg45-bnav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--pg45-accent); border-radius: 0 0 3px 3px;
}

/* Winner Ticker */
.pg45-winners { background: var(--pg45-card-bg); border-radius: var(--pg45-radius-lg); padding: 1rem; margin-bottom: 1rem; }
.pg45-winner-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--pg45-border); }
.pg45-winner-item:last-child { border: none; }
.pg45-winner-name { font-size: 1.2rem; color: var(--pg45-text-muted); }
.pg45-winner-amount { font-size: 1.3rem; color: var(--pg45-success); font-weight: 700; }

/* Payment Icons */
.pg45-payment-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 0.8rem 0; }
.pg45-payment-item { background: var(--pg45-card-bg); border-radius: var(--pg45-radius); padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--pg45-text-muted); border: 1px solid var(--pg45-border); }

/* Testimonials */
.pg45-testimonial { background: var(--pg45-card-bg); border-radius: var(--pg45-radius-lg); padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--pg45-primary); }
.pg45-testimonial p { font-size: 1.3rem; color: var(--pg45-text-muted); font-style: italic; margin-bottom: 0.4rem; }
.pg45-testimonial cite { font-size: 1.1rem; color: var(--pg45-accent); }

/* FAQ Accordion */
.pg45-faq-item { background: var(--pg45-card-bg); border-radius: var(--pg45-radius); margin-bottom: 0.6rem; overflow: hidden; }
.pg45-faq-q { padding: 1rem; font-weight: 600; color: var(--pg45-text); cursor: pointer; font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.pg45-faq-a { padding: 0 1rem 1rem; color: var(--pg45-text-muted); font-size: 1.2rem; line-height: 1.5rem; }

/* Features Grid */
.pg45-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pg45-feature-card { background: var(--pg45-card-bg); border-radius: var(--pg45-radius); padding: 1rem; text-align: center; border: 1px solid var(--pg45-border); }
.pg45-feature-card .material-icons, .pg45-feature-card .fas, .pg45-feature-card .bi { font-size: 2.4rem; color: var(--pg45-primary); margin-bottom: 0.6rem; }
.pg45-feature-card h4 { font-size: 1.2rem; color: var(--pg45-accent); margin-bottom: 0.4rem; }
.pg45-feature-card p { font-size: 1.1rem; color: var(--pg45-text-muted); }

/* Responsive */
@media (min-width: 769px) {
  .pg45-bnav { display: none; }
  .pg45-header { max-width: 430px; }
}
@media (max-width: 768px) {
  .pg45-main { padding-bottom: calc(var(--pg45-bnav-h) + 1.2rem); }
}

/* Utility */
.pg45-text-center { text-align: center; }
.pg45-mt-1 { margin-top: 1rem; }
.pg45-mb-1 { margin-bottom: 1rem; }
.pg45-hidden { display: none; }
.pg45-container { width: 100%; max-width: 430px; margin: 0 auto; }
