/**
 * 786bdt - Main Stylesheet
 * Mobile-first design for Bangladesh gaming market
 * All classes use pg7e- prefix for namespace isolation
 * Colors: Dark=#0E1621, Light=#FFCCCB, Accent=#FA8072
 */

/* ========== CSS Variables ========== */
:root {
  --pg7e-primary: #FA8072;
  --pg7e-bg: #0E1621;
  --pg7e-text: #FFCCCB;
  --pg7e-surface: #1a2435;
  --pg7e-surface-alt: #243044;
  --pg7e-border: rgba(250, 128, 114, 0.2);
  --pg7e-gradient: linear-gradient(135deg, #FA8072, #e05545);
  --pg7e-glow: 0 0 20px rgba(250, 128, 114, 0.3);
  --pg7e-radius: 12px;
  --pg7e-radius-sm: 8px;
  --pg7e-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --pg7e-transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Tahoma, sans-serif;
  background-color: var(--pg7e-bg);
  color: var(--pg7e-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--pg7e-primary);
  text-decoration: none;
  transition: var(--pg7e-transition);
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* ========== Header ========== */
.pg7e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg7e-bg);
  border-bottom: 1px solid var(--pg7e-border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.pg7e-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--pg7e-primary);
  letter-spacing: 1px;
}

.pg7e-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg7e-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg7e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--pg7e-radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--pg7e-transition);
  text-decoration: none;
  white-space: nowrap;
}

.pg7e-btn-register {
  background: var(--pg7e-gradient);
  color: #fff;
  box-shadow: var(--pg7e-glow);
}

.pg7e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(250, 128, 114, 0.5);
}

.pg7e-btn-login {
  background: transparent;
  color: var(--pg7e-primary);
  border: 1.5px solid var(--pg7e-primary);
}

.pg7e-btn-login:hover {
  background: rgba(250, 128, 114, 0.1);
}

.pg7e-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg7e-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ========== Mobile Menu ========== */
.pg7e-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.pg7e-overlay-active {
  display: block;
}

#pg7e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg7e-surface);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 24px 20px;
  overflow-y: auto;
}

.pg7e-menu-open {
  right: 0 !important;
}

.pg7e-menu-closed {
  right: -280px;
}

.pg7e-menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.pg7e-menu-close button {
  background: none;
  border: none;
  color: var(--pg7e-text);
  font-size: 28px;
  cursor: pointer;
}

#pg7e-mobile-menu ul li {
  margin-bottom: 4px;
}

#pg7e-mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--pg7e-text);
  font-size: 15px;
  border-radius: var(--pg7e-radius-sm);
  transition: var(--pg7e-transition);
}

#pg7e-mobile-menu ul li a:hover {
  background: var(--pg7e-surface-alt);
  color: var(--pg7e-primary);
}

/* ========== Main Content ========== */
.pg7e-main {
  margin-top: 56px;
  min-height: calc(100vh - 56px);
}

/* ========== Carousel ========== */
.pg7e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--pg7e-radius) var(--pg7e-radius);
}

.pg7e-carousel-slide {
  display: none;
  width: 100%;
  position: relative;
}

.pg7e-slide-active {
  display: block;
}

.pg7e-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.pg7e-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.95));
}

.pg7e-slide-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.pg7e-slide-desc {
  font-size: 13px;
  color: var(--pg7e-text);
  opacity: 0.85;
}

.pg7e-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.pg7e-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 204, 203, 0.4);
  cursor: pointer;
  transition: var(--pg7e-transition);
}

.pg7e-dot-active {
  background: var(--pg7e-primary);
  transform: scale(1.3);
}

/* ========== Section Styles ========== */
.pg7e-section {
  padding: 24px 16px;
}

.pg7e-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg7e-section-title .pg7e-title-icon {
  color: var(--pg7e-primary);
  font-size: 22px;
}

/* ========== Category Tabs ========== */
.pg7e-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pg7e-cat-tabs::-webkit-scrollbar {
  display: none;
}

.pg7e-cat-tab {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--pg7e-surface);
  color: var(--pg7e-text);
  border: 1px solid transparent;
  transition: var(--pg7e-transition);
}

.pg7e-cat-tab:hover {
  border-color: var(--pg7e-border);
}

.pg7e-tab-active {
  background: var(--pg7e-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ========== Game Grid ========== */
.pg7e-cat-panel {
  display: none;
}

.pg7e-panel-active {
  display: grid;
}

.pg7e-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pg7e-game-card {
  background: var(--pg7e-surface);
  border-radius: var(--pg7e-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--pg7e-transition);
  border: 1px solid transparent;
}

.pg7e-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg7e-border);
  box-shadow: var(--pg7e-glow);
}

.pg7e-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pg7e-game-name {
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pg7e-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Promo Banner Module ========== */
.pg7e-promo-banner {
  background: var(--pg7e-gradient);
  border-radius: var(--pg7e-radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.pg7e-promo-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pg7e-promo-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.pg7e-promo-btn {
  display: inline-block;
  background: #fff;
  color: var(--pg7e-bg);
  padding: 10px 32px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--pg7e-transition);
}

.pg7e-promo-btn:hover {
  transform: scale(1.08);
  text-decoration: none;
}

/* ========== Feature Cards ========== */
.pg7e-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pg7e-feature-card {
  background: var(--pg7e-surface);
  border-radius: var(--pg7e-radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--pg7e-border);
  transition: var(--pg7e-transition);
}

.pg7e-feature-card:hover {
  background: var(--pg7e-surface-alt);
}

.pg7e-feature-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.pg7e-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pg7e-feature-desc {
  font-size: 12px;
  color: var(--pg7e-text);
  opacity: 0.75;
  line-height: 1.5;
}

/* ========== Winner Ticker ========== */
.pg7e-ticker {
  background: var(--pg7e-surface);
  border-radius: var(--pg7e-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.pg7e-ticker-label {
  flex-shrink: 0;
  background: var(--pg7e-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.pg7e-ticker-list {
  display: flex;
  gap: 24px;
  animation: pg7e-scroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes pg7e-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pg7e-ticker-item {
  font-size: 13px;
  color: var(--pg7e-text);
}

.pg7e-ticker-item span {
  color: var(--pg7e-primary);
  font-weight: 700;
}

/* ========== Footer ========== */
.pg7e-footer {
  background: var(--pg7e-surface);
  border-top: 1px solid var(--pg7e-border);
  padding: 32px 16px 24px;
  text-align: center;
}

.pg7e-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pg7e-border);
}

.pg7e-footer-partners span {
  font-size: 12px;
  color: var(--pg7e-text);
  opacity: 0.6;
  padding: 4px 12px;
  background: var(--pg7e-surface-alt);
  border-radius: 4px;
}

.pg7e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pg7e-footer-links a {
  font-size: 13px;
  color: var(--pg7e-text);
  opacity: 0.7;
}

.pg7e-footer-links a:hover {
  color: var(--pg7e-primary);
  opacity: 1;
}

.pg7e-footer-copy {
  font-size: 12px;
  color: var(--pg7e-text);
  opacity: 0.5;
  margin-top: 16px;
}

/* ========== Mobile Bottom Navigation ========== */
.pg7e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--pg7e-bg);
  border-top: 1px solid var(--pg7e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.pg7e-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg7e-text);
  opacity: 0.65;
  cursor: pointer;
  transition: var(--pg7e-transition);
  padding: 4px;
  border-radius: var(--pg7e-radius-sm);
}

.pg7e-bottom-btn:hover {
  opacity: 1;
  color: var(--pg7e-primary);
  transform: scale(1.08);
}

.pg7e-bottom-btn.pg7e-nav-active {
  opacity: 1;
  color: var(--pg7e-primary);
}

.pg7e-bottom-btn .pg7e-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg7e-bottom-btn .pg7e-nav-label {
  font-size: 10px;
  font-weight: 600;
}

/* ========== Help Page Styles ========== */
.pg7e-help-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

.pg7e-help-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pg7e-help-subtitle {
  font-size: 14px;
  color: var(--pg7e-text);
  opacity: 0.7;
  margin-bottom: 28px;
}

.pg7e-help-section {
  margin-bottom: 28px;
}

.pg7e-help-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--pg7e-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pg7e-border);
}

.pg7e-help-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 16px 0 8px;
}

.pg7e-help-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--pg7e-text);
  margin-bottom: 12px;
}

.pg7e-help-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.pg7e-help-section ul li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--pg7e-text);
  list-style: disc;
  margin-bottom: 4px;
}

.pg7e-faq-item {
  background: var(--pg7e-surface);
  border-radius: var(--pg7e-radius-sm);
  padding: 16px;
  margin-bottom: 10px;
  border-left: 3px solid var(--pg7e-primary);
}

.pg7e-faq-item strong {
  color: #fff;
  font-size: 14px;
}

.pg7e-faq-item p {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 13px;
}

.pg7e-cta-box {
  background: var(--pg7e-surface);
  border: 1px solid var(--pg7e-border);
  border-radius: var(--pg7e-radius);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.pg7e-cta-box p {
  font-size: 14px;
  margin-bottom: 16px;
}

.pg7e-cta-box .pg7e-btn {
  font-size: 15px;
  padding: 10px 28px;
}

/* ========== Responsive ========== */
@media (min-width: 769px) {
  .pg7e-bottom-nav {
    display: none;
  }

  .pg7e-menu-toggle {
    display: none;
  }

  .pg7e-header {
    padding: 0 32px;
  }

  .pg7e-main {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 56px;
  }

  .pg7e-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pg7e-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pg7e-footer {
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pg7e-main {
    padding-bottom: 80px;
  }

  .pg7e-menu-toggle {
    display: flex;
  }
}

@media (max-width: 360px) {
  .pg7e-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg7e-features-grid {
    grid-template-columns: 1fr;
  }
}
