/**
 * jl292026 - Theme Stylesheet
 * All classes prefixed with pg6e- to avoid conflicts
 * Color palette: #000080 (Navy), #0000CD (Medium Blue), #EEE8AA (Pale Gold), #0C0C0C (Near Black)
 * Mobile-first design, max-width 430px
 */

/* CSS Custom Properties */
:root {
  --pg6e-primary: #0000CD;
  --pg6e-primary-dark: #000080;
  --pg6e-accent: #EEE8AA;
  --pg6e-bg: #0C0C0C;
  --pg6e-bg-card: #111122;
  --pg6e-bg-section: #0a0a1a;
  --pg6e-text: #EEE8AA;
  --pg6e-text-light: #f5f0d0;
  --pg6e-text-muted: #8888aa;
  --pg6e-border: #1a1a3a;
  --pg6e-success: #22c55e;
  --pg6e-warning: #f59e0b;
  --pg6e-danger: #ef4444;
  --pg6e-radius: 8px;
  --pg6e-radius-lg: 12px;
  --pg6e-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --pg6e-header-height: 56px;
  --pg6e-bottom-nav-height: 60px;
  font-size: 62.5%;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg6e-text);
  background-color: var(--pg6e-bg);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover, a:focus {
  color: var(--pg6e-text-light);
}

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

/* Header */
.pg6e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg6e-header-height);
  background: linear-gradient(135deg, var(--pg6e-primary-dark) 0%, #00004d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid var(--pg6e-border);
  transition: box-shadow 0.3s;
}

.pg6e-header-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 205, 0.3);
}

.pg6e-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg6e-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pg6e-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg6e-accent);
  letter-spacing: 0.5px;
}

.pg6e-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pg6e-btn-register {
  background: linear-gradient(135deg, var(--pg6e-accent), #d4c87a);
  color: var(--pg6e-primary-dark);
}

.pg6e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(238, 232, 170, 0.4);
}

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

.pg6e-btn-login:hover {
  background: rgba(238, 232, 170, 0.1);
}

.pg6e-btn-primary {
  background: linear-gradient(135deg, var(--pg6e-primary), var(--pg6e-primary-dark));
  color: var(--pg6e-accent);
  width: 100%;
  padding: 12px;
  font-size: 1.5rem;
  border-radius: var(--pg6e-radius-lg);
}

.pg6e-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 205, 0.5);
}

.pg6e-btn-promo {
  background: linear-gradient(135deg, #1a1aaa, var(--pg6e-primary));
  color: var(--pg6e-accent);
  padding: 10px 20px;
  font-size: 1.4rem;
}

.pg6e-btn-promo:hover {
  background: linear-gradient(135deg, var(--pg6e-primary), #2222cc);
}

/* Menu toggle */
.pg6e-menu-toggle {
  background: none;
  border: none;
  color: var(--pg6e-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Mobile menu overlay */
.pg6e-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Mobile slide menu */
.pg6e-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg6e-primary-dark), #0a0a2a);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 20px;
  overflow-y: auto;
}

.pg6e-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--pg6e-border);
}

.pg6e-mobile-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg6e-accent);
}

.pg6e-mobile-menu-close {
  background: none;
  border: none;
  color: var(--pg6e-text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.pg6e-mobile-menu-nav {
  list-style: none;
  padding: 12px 0;
}

.pg6e-mobile-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--pg6e-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}

.pg6e-mobile-menu-nav li a:hover {
  background: rgba(238, 232, 170, 0.08);
  color: var(--pg6e-accent);
}

/* Main content */
.pg6e-main {
  padding-top: var(--pg6e-header-height);
  min-height: 100vh;
}

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

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

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

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

.pg6e-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.pg6e-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pg6e-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(238, 232, 170, 0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.pg6e-dot-active {
  background: var(--pg6e-accent);
  width: 20px;
  border-radius: 4px;
}

/* Container */
.pg6e-container {
  width: 100%;
  padding: 0 12px;
}

/* Section */
.pg6e-section {
  padding: 20px 12px;
}

.pg6e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg6e-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pg6e-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg6e-section-title i,
.pg6e-section-title .material-icons {
  font-size: 2rem;
}

/* Category header */
.pg6e-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--pg6e-primary-dark), #0d0d3d);
  border-radius: var(--pg6e-radius);
  border-left: 3px solid var(--pg6e-accent);
}

.pg6e-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg6e-accent);
}

/* Game grid */
.pg6e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (min-width: 376px) {
  .pg6e-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

.pg6e-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--pg6e-radius);
  padding: 4px;
}

.pg6e-game-card:hover {
  transform: translateY(-2px);
}

.pg6e-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg6e-radius);
  border: 1px solid var(--pg6e-border);
  object-fit: cover;
}

.pg6e-game-name {
  font-size: 1rem;
  color: var(--pg6e-text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Text content blocks */
.pg6e-content-block {
  padding: 16px 12px;
  line-height: 1.5;
}

.pg6e-content-block h2 {
  font-size: 1.7rem;
  color: var(--pg6e-accent);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pg6e-border);
}

.pg6e-content-block h3 {
  font-size: 1.5rem;
  color: var(--pg6e-text-light);
  margin: 12px 0 8px;
}

.pg6e-content-block p {
  margin-bottom: 10px;
  color: var(--pg6e-text);
  line-height: 1.6;
}

.pg6e-content-block ul,
.pg6e-content-block ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.pg6e-content-block li {
  margin-bottom: 6px;
  color: var(--pg6e-text);
  line-height: 1.5;
}

/* Card component */
.pg6e-card {
  background: var(--pg6e-bg-card);
  border: 1px solid var(--pg6e-border);
  border-radius: var(--pg6e-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.pg6e-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg6e-accent);
  margin-bottom: 8px;
}

/* FAQ section */
.pg6e-faq-item {
  background: var(--pg6e-bg-card);
  border: 1px solid var(--pg6e-border);
  border-radius: var(--pg6e-radius);
  padding: 12px;
  margin-bottom: 8px;
}

.pg6e-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pg6e-accent);
  margin-bottom: 6px;
}

.pg6e-faq-a {
  font-size: 1.3rem;
  color: var(--pg6e-text-muted);
  line-height: 1.5;
}

/* RTP bar */
.pg6e-rtp-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.pg6e-rtp-label {
  min-width: 90px;
  color: var(--pg6e-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg6e-rtp-track {
  flex: 1;
  height: 8px;
  background: var(--pg6e-border);
  border-radius: 4px;
  overflow: hidden;
}

.pg6e-rtp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pg6e-primary), var(--pg6e-accent));
}

.pg6e-rtp-value {
  min-width: 40px;
  text-align: right;
  color: var(--pg6e-accent);
  font-weight: 600;
}

/* Winner showcase */
.pg6e-winner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pg6e-border);
}

.pg6e-winner-item:last-child {
  border-bottom: none;
}

.pg6e-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg6e-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg6e-accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.pg6e-winner-info {
  flex: 1;
}

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

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

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

/* Testimonial */
.pg6e-testimonial {
  background: var(--pg6e-bg-card);
  border: 1px solid var(--pg6e-border);
  border-radius: var(--pg6e-radius-lg);
  padding: 12px;
  margin-bottom: 10px;
}

.pg6e-testimonial-text {
  font-size: 1.3rem;
  color: var(--pg6e-text);
  font-style: italic;
  margin-bottom: 8px;
}

.pg6e-testimonial-author {
  font-size: 1.2rem;
  color: var(--pg6e-text-muted);
  text-align: right;
}

/* Payment methods */
.pg6e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

/* App download section */
.pg6e-app-section {
  background: linear-gradient(135deg, var(--pg6e-primary-dark), #0a0a3a);
  border-radius: var(--pg6e-radius-lg);
  padding: 20px;
  text-align: center;
}

.pg6e-app-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg6e-accent);
  margin-bottom: 8px;
}

.pg6e-app-desc {
  font-size: 1.3rem;
  color: var(--pg6e-text-muted);
  margin-bottom: 16px;
}

/* Footer */
.pg6e-footer {
  background: linear-gradient(180deg, #0a0a1a, #050510);
  padding: 20px 12px 30px;
  border-top: 1px solid var(--pg6e-border);
}

.pg6e-footer-brand {
  text-align: center;
  margin-bottom: 16px;
}

.pg6e-footer-brand p {
  font-size: 1.2rem;
  color: var(--pg6e-text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

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

.pg6e-footer-link {
  background: var(--pg6e-bg-card);
  border: 1px solid var(--pg6e-border);
  border-radius: var(--pg6e-radius);
  padding: 6px 12px;
  font-size: 1.1rem;
  color: var(--pg6e-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pg6e-footer-link:hover {
  color: var(--pg6e-accent);
  border-color: var(--pg6e-accent);
}

.pg6e-footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.pg6e-footer-sitemap a {
  font-size: 1.1rem;
  color: var(--pg6e-text-muted);
}

.pg6e-footer-sitemap a:hover {
  color: var(--pg6e-accent);
}

.pg6e-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg6e-text-muted);
  border-top: 1px solid var(--pg6e-border);
  padding-top: 12px;
}

/* Bottom navigation */
.pg6e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg6e-bottom-nav-height);
  background: linear-gradient(180deg, #0a0a2a, var(--pg6e-bg));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--pg6e-primary-dark);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.pg6e-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pg6e-text-muted);
  transition: all 0.2s;
  padding: 4px;
  gap: 2px;
  position: relative;
}

.pg6e-bottom-nav-btn:hover,
.pg6e-bottom-nav-btn:focus {
  color: var(--pg6e-accent);
}

.pg6e-bottom-nav-btn.pg6e-nav-active {
  color: var(--pg6e-accent);
}

.pg6e-bottom-nav-btn.pg6e-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--pg6e-accent);
  border-radius: 1px;
}

.pg6e-bottom-nav-btn i,
.pg6e-bottom-nav-btn .material-icons,
.pg6e-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.pg6e-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg6e-bottom-nav {
    display: none;
  }
}

/* Partner logos */
.pg6e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

.pg6e-partner-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--pg6e-radius);
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.pg6e-partner-logo:hover {
  opacity: 1;
}

/* Utility classes */
.pg6e-text-center { text-align: center; }
.pg6e-text-gold { color: var(--pg6e-accent); }
.pg6e-text-muted { color: var(--pg6e-text-muted); }
.pg6e-mt-8 { margin-top: 8px; }
.pg6e-mt-16 { margin-top: 16px; }
.pg6e-mb-8 { margin-bottom: 8px; }
.pg6e-mb-16 { margin-bottom: 16px; }

/* Promotional inline link */
.pg6e-promo-link {
  color: var(--pg6e-accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--pg6e-accent);
  transition: all 0.2s;
}

.pg6e-promo-link:hover {
  color: var(--pg6e-text-light);
  border-bottom-style: solid;
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .pg6e-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pg6e-site-name {
    font-size: 1.4rem;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  body {
    max-width: 430px;
    border-left: 1px solid var(--pg6e-border);
    border-right: 1px solid var(--pg6e-border);
  }
  .pg6e-main {
    padding-bottom: 20px;
  }
}
