/**
 * dbjl Gaming Platform - Core CSS Stylesheet
 * All classes prefixed with pg3e- for namespace isolation
 * Color palette: #8B008B (Dark Magenta) | #262626 (Dark Charcoal)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --pg3e-primary: #8B008B;
  --pg3e-primary-light: #A832A8;
  --pg3e-primary-dark: #6B006B;
  --pg3e-bg: #262626;
  --pg3e-bg-light: #333333;
  --pg3e-bg-card: #1E1E1E;
  --pg3e-text: #FFFFFF;
  --pg3e-text-muted: #B0B0B0;
  --pg3e-text-dim: #888888;
  --pg3e-accent: #FFD700;
  --pg3e-accent2: #FF6B6B;
  --pg3e-success: #4CAF50;
  --pg3e-border: #3A3A3A;
  --pg3e-shadow: rgba(0, 0, 0, 0.3);
  --pg3e-radius: 8px;
  --pg3e-radius-lg: 12px;
  --pg3e-font-base: 62.5%;
}

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

html {
  font-size: var(--pg3e-font-base);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  background-color: var(--pg3e-bg);
  color: var(--pg3e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--pg3e-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pg3e-primary-light);
}

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

/* Container & Wrapper */
.pg3e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

.pg3e-wrapper {
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Header Navigation */
.pg3e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg3e-bg) 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--pg3e-primary);
  padding: 0;
  height: 56px;
}

.pg3e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}

.pg3e-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pg3e-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg3e-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg3e-accent);
  letter-spacing: 1px;
}

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

.pg3e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--pg3e-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 36px;
}

.pg3e-btn-register {
  background: var(--pg3e-accent);
  color: var(--pg3e-bg);
}

.pg3e-btn-register:hover {
  background: #FFE44D;
  transform: scale(1.05);
}

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

.pg3e-btn-login:hover {
  background: rgba(255, 215, 0, 0.1);
}

.pg3e-btn-primary {
  background: linear-gradient(135deg, var(--pg3e-primary) 0%, var(--pg3e-primary-light) 100%);
  color: #fff;
}

.pg3e-btn-primary:hover {
  background: linear-gradient(135deg, var(--pg3e-primary-light) 0%, var(--pg3e-primary) 100%);
  transform: scale(1.03);
}

.pg3e-btn-lg {
  padding: 12px 28px;
  font-size: 1.4rem;
  border-radius: var(--pg3e-radius-lg);
}

/* Hamburger Menu Button */
.pg3e-menu-btn {
  background: none;
  border: none;
  color: var(--pg3e-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.pg3e-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

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

/* Mobile Slide Menu */
.pg3e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg3e-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg3e-menu-active {
  right: 0;
}

.pg3e-mobile-menu .pg3e-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg3e-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.pg3e-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pg3e-border);
  color: var(--pg3e-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}

.pg3e-mobile-menu nav a:hover {
  color: var(--pg3e-accent);
}

/* Carousel / Slider */
.pg3e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pg3e-radius-lg);
  margin-top: 1rem;
}

.pg3e-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg3e-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--pg3e-radius-lg);
}

.pg3e-slide-dots {
  text-align: center;
  padding: 0.8rem 0;
}

.pg3e-slide-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pg3e-border);
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.pg3e-dot-active {
  background: var(--pg3e-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section Titles */
.pg3e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg3e-accent);
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pg3e-primary);
}

.pg3e-section-title i {
  margin-right: 6px;
  color: var(--pg3e-primary-light);
}

/* Game Grid */
.pg3e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0.5rem 0;
}

.pg3e-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--pg3e-radius);
  padding: 6px;
  background: var(--pg3e-bg-card);
}

.pg3e-game-item:hover {
  transform: scale(1.05);
  background: var(--pg3e-bg-light);
}

.pg3e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg3e-radius);
  margin-bottom: 4px;
}

.pg3e-game-item span {
  font-size: 1rem;
  color: var(--pg3e-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Category Label */
.pg3e-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg3e-primary-light);
  margin: 1.2rem 0 0.6rem;
  padding: 0.4rem 0.8rem;
  background: rgba(139, 0, 139, 0.15);
  border-radius: var(--pg3e-radius);
  display: inline-block;
}

/* Content Cards */
.pg3e-card {
  background: var(--pg3e-bg-card);
  border-radius: var(--pg3e-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--pg3e-border);
}

.pg3e-card h2 {
  font-size: 1.6rem;
  color: var(--pg3e-accent);
  margin-bottom: 0.8rem;
}

.pg3e-card h3 {
  font-size: 1.4rem;
  color: var(--pg3e-primary-light);
  margin: 0.8rem 0 0.4rem;
}

.pg3e-card p {
  color: var(--pg3e-text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* Feature List */
.pg3e-feature-list {
  list-style: none;
  padding: 0;
}

.pg3e-feature-list li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--pg3e-text-muted);
  font-size: 1.3rem;
}

.pg3e-feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--pg3e-success);
  font-size: 1.2rem;
}

/* FAQ Section */
.pg3e-faq-item {
  background: var(--pg3e-bg-card);
  border-radius: var(--pg3e-radius);
  padding: 1rem 1.2rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--pg3e-primary);
}

.pg3e-faq-item strong {
  color: var(--pg3e-accent);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.pg3e-faq-item p {
  color: var(--pg3e-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Promo Banner */
.pg3e-promo-banner {
  background: linear-gradient(135deg, var(--pg3e-primary) 0%, var(--pg3e-primary-dark) 100%);
  border-radius: var(--pg3e-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.pg3e-promo-banner h3 {
  color: var(--pg3e-accent);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.pg3e-promo-banner p {
  color: #ddd;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Testimonial */
.pg3e-testimonial {
  background: var(--pg3e-bg-card);
  border-radius: var(--pg3e-radius-lg);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border: 1px solid var(--pg3e-border);
}

.pg3e-testimonial-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.pg3e-testimonial-name {
  font-weight: 600;
  color: var(--pg3e-accent);
  font-size: 1.2rem;
}

.pg3e-testimonial-stars {
  color: var(--pg3e-accent);
  font-size: 1rem;
}

.pg3e-testimonial p {
  color: var(--pg3e-text-muted);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Payment Methods */
.pg3e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pg3e-payment-item {
  background: var(--pg3e-bg-card);
  border: 1px solid var(--pg3e-border);
  border-radius: var(--pg3e-radius);
  padding: 8px 14px;
  font-size: 1.1rem;
  color: var(--pg3e-text-muted);
}

/* Winner Showcase */
.pg3e-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pg3e-border);
}

.pg3e-winner-name {
  color: var(--pg3e-text);
  font-weight: 600;
  font-size: 1.2rem;
}

.pg3e-winner-game {
  color: var(--pg3e-text-dim);
  font-size: 1.1rem;
}

.pg3e-winner-amount {
  color: var(--pg3e-accent);
  font-weight: 700;
  font-size: 1.3rem;
}

/* Footer */
.pg3e-footer {
  background: #1a1a1a;
  padding: 2rem 0 6rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg3e-primary);
}

.pg3e-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg3e-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pg3e-footer-brand p {
  color: var(--pg3e-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.pg3e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 1rem 0;
}

.pg3e-footer-links a {
  background: var(--pg3e-bg-light);
  border: 1px solid var(--pg3e-border);
  border-radius: var(--pg3e-radius);
  padding: 6px 12px;
  font-size: 1.1rem;
  color: var(--pg3e-text-muted);
  transition: all 0.2s;
}

.pg3e-footer-links a:hover {
  color: var(--pg3e-accent);
  border-color: var(--pg3e-primary);
}

.pg3e-footer-copyright {
  text-align: center;
  color: var(--pg3e-text-dim);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Bottom Navigation (Mobile) */
.pg3e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 1.5px solid var(--pg3e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.pg3e-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg3e-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 0;
  border-radius: 8px;
}

.pg3e-bottom-nav-btn:hover,
.pg3e-bottom-nav-btn.pg3e-nav-active {
  color: var(--pg3e-accent);
  background: rgba(139, 0, 139, 0.15);
}

.pg3e-bottom-nav-btn i,
.pg3e-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg3e-bottom-nav-btn span {
  font-size: 10px;
  line-height: 1.2;
}

/* Main content padding for mobile nav */
.pg3e-main {
  padding-top: 56px;
  padding-bottom: 80px;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
  .pg3e-bottom-nav {
    display: none;
  }
  .pg3e-main {
    padding-bottom: 0;
  }
  .pg3e-footer {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.pg3e-text-center { text-align: center; }
.pg3e-text-accent { color: var(--pg3e-accent); }
.pg3e-text-primary { color: var(--pg3e-primary-light); }
.pg3e-mt-1 { margin-top: 1rem; }
.pg3e-mb-1 { margin-bottom: 1rem; }
.pg3e-py-1 { padding-top: 1rem; padding-bottom: 1rem; }

/* Promo link text style */
.pg3e-promo-text {
  color: var(--pg3e-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.pg3e-promo-text:hover {
  color: var(--pg3e-primary-light);
  text-decoration: underline;
}

/* Scroll to top button */
.pg3e-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pg3e-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 999;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.pg3e-scroll-top:hover {
  opacity: 1;
}
