/**
 * AJJL Gaming Platform - Theme Stylesheet
 * File: css/theme-dc8b.css
 * Prefix: g8b7-
 * Palette: #FFDEAD | #6F4E37 | #DA70D6 | #212F3D | #A0522D
 */

/* === CSS Variables === */
:root {
  --g8b7-primary: #DA70D6;
  --g8b7-primary-dark: #B84DB8;
  --g8b7-secondary: #FFDEAD;
  --g8b7-accent: #A0522D;
  --g8b7-bg-dark: #212F3D;
  --g8b7-bg-darker: #1A2530;
  --g8b7-bg-card: #2A3B4A;
  --g8b7-bg-card-hover: #334858;
  --g8b7-text-light: #FFDEAD;
  --g8b7-text-white: #F5F0E8;
  --g8b7-text-muted: #9EAFC0;
  --g8b7-brown: #6F4E37;
  --g8b7-border: #3A4F62;
  --g8b7-success: #2ECC71;
  --g8b7-warning: #F39C12;
  --g8b7-font-size-base: 62.5%;
  --g8b7-radius: 1.2rem;
  --g8b7-radius-sm: 0.8rem;
  --g8b7-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --g8b7-transition: all 0.3s ease;
}

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--g8b7-font-size-base); scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--g8b7-bg-dark);
  color: var(--g8b7-text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--g8b7-secondary); transition: var(--g8b7-transition); }
a:hover { color: var(--g8b7-primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Layout === */
.g8b7-container { max-width: 430px; margin: 0 auto; padding: 0 1.6rem; }
.g8b7-wrapper { width: 100%; position: relative; }
.g8b7-section { padding: 4rem 0; }
.g8b7-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g8b7-secondary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}
.g8b7-section-title::after {
  content: '';
  display: block;
  width: 6rem;
  height: 0.3rem;
  background: var(--g8b7-primary);
  margin: 1rem auto 0;
  border-radius: 0.2rem;
}

/* === Header === */
.g8b7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g8b7-bg-darker);
  border-bottom: 1px solid var(--g8b7-border);
  padding: 0.8rem 0;
  transition: var(--g8b7-transition);
}
.g8b7-header-scrolled {
  background: rgba(26, 37, 48, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.g8b7-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.g8b7-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.g8b7-logo img { width: 28px; height: 28px; border-radius: 0.4rem; }
.g8b7-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g8b7-secondary);
  letter-spacing: 0.5px;
}
.g8b7-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g8b7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--g8b7-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--g8b7-transition);
  min-height: 36px;
  gap: 0.4rem;
}
.g8b7-btn-primary {
  background: linear-gradient(135deg, var(--g8b7-primary), var(--g8b7-primary-dark));
  color: #fff;
}
.g8b7-btn-primary:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(218, 112, 214, 0.4); }
.g8b7-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--g8b7-primary);
  color: var(--g8b7-primary);
}
.g8b7-btn-secondary:hover { background: rgba(218, 112, 214, 0.1); }
.g8b7-btn-accent {
  background: linear-gradient(135deg, var(--g8b7-accent), #8B4513);
  color: var(--g8b7-secondary);
}
.g8b7-btn-accent:hover { transform: scale(1.05); }
.g8b7-menu-toggle {
  background: none;
  border: none;
  color: var(--g8b7-text-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.g8b7-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--g8b7-bg-darker);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--g8b7-border);
}
.g8b7-menu-active { right: 0; }
.g8b7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.g8b7-overlay-active { opacity: 1; pointer-events: all; }
.g8b7-menu-close {
  background: none;
  border: none;
  color: var(--g8b7-text-white);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}
.g8b7-menu-list { margin-top: 3rem; }
.g8b7-menu-item {
  display: block;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--g8b7-border);
  color: var(--g8b7-text-white);
  font-size: 1.4rem;
  font-weight: 500;
  transition: var(--g8b7-transition);
}
.g8b7-menu-item:hover { color: var(--g8b7-primary); padding-left: 0.8rem; }

/* === Slider / Carousel === */
.g8b7-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1.6rem 1.6rem;
}
.g8b7-slides-wrapper { position: relative; width: 100%; }
.g8b7-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g8b7-slide img { width: 100%; height: auto; display: block; }
.g8b7-slide-active { display: block; }
.g8b7-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.g8b7-slider-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 222, 173, 0.5);
  cursor: pointer;
  border: none;
  transition: var(--g8b7-transition);
}
.g8b7-slider-dot:hover, .g8b7-slider-dot-active {
  background: var(--g8b7-primary);
  transform: scale(1.3);
}

/* === Game Grid === */
.g8b7-game-section { padding: 2rem 0; }
.g8b7-game-category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g8b7-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--g8b7-primary);
}
.g8b7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.g8b7-game-item {
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--g8b7-transition);
  border: 1px solid transparent;
}
.g8b7-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--g8b7-primary);
  box-shadow: 0 6px 20px rgba(218, 112, 214, 0.2);
}
.g8b7-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.g8b7-game-name {
  font-size: 1rem;
  color: var(--g8b7-text-white);
  text-align: center;
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* === Cards === */
.g8b7-card {
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius);
  padding: 2rem;
  border: 1px solid var(--g8b7-border);
  transition: var(--g8b7-transition);
}
.g8b7-card:hover { border-color: var(--g8b7-primary); transform: translateY(-2px); }
.g8b7-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g8b7-secondary);
  margin-bottom: 1rem;
}
.g8b7-card-text {
  font-size: 1.3rem;
  color: var(--g8b7-text-muted);
  line-height: 1.7;
}

/* === Promo Link (text style) === */
.g8b7-promo-text {
  color: var(--g8b7-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--g8b7-transition);
  border-bottom: 1px dashed var(--g8b7-primary);
}
.g8b7-promo-text:hover { color: var(--g8b7-primary); }

/* === Footer === */
.g8b7-footer {
  background: var(--g8b7-bg-darker);
  border-top: 1px solid var(--g8b7-border);
  padding: 3rem 0 10rem;
}
.g8b7-footer-brand {
  font-size: 1.4rem;
  color: var(--g8b7-text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.g8b7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.g8b7-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius-sm);
  color: var(--g8b7-secondary);
  font-size: 1.2rem;
  font-weight: 500;
  border: 1px solid var(--g8b7-border);
  transition: var(--g8b7-transition);
}
.g8b7-footer-link:hover { border-color: var(--g8b7-primary); color: var(--g8b7-primary); }
.g8b7-footer-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g8b7-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--g8b7-border);
}

/* === Bottom Navigation (Mobile) === */
.g8b7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g8b7-bg-darker);
  border-top: 2px solid var(--g8b7-primary);
  display: none;
  height: 60px;
  padding: 0;
}
.g8b7-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.g8b7-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--g8b7-text-muted);
  cursor: pointer;
  transition: var(--g8b7-transition);
  padding: 0.4rem;
  position: relative;
}
.g8b7-bottom-btn:hover, .g8b7-bottom-btn-active {
  color: var(--g8b7-primary);
}
.g8b7-bottom-btn-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.3rem;
  background: var(--g8b7-primary);
  border-radius: 0 0 0.2rem 0.2rem;
}
.g8b7-bottom-btn i, .g8b7-bottom-btn span.material-symbols-outlined {
  font-size: 2.2rem;
  line-height: 1;
}
.g8b7-bottom-btn ion-icon { font-size: 2.2rem; }
.g8b7-bottom-btn-label {
  font-size: 1rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* === Content Sections === */
.g8b7-content-block {
  padding: 2rem 0;
  line-height: 1.8;
}
.g8b7-content-block h2 {
  font-size: 1.8rem;
  color: var(--g8b7-secondary);
  margin: 2rem 0 1rem;
}
.g8b7-content-block h3 {
  font-size: 1.5rem;
  color: var(--g8b7-primary);
  margin: 1.5rem 0 0.8rem;
}
.g8b7-content-block p {
  font-size: 1.3rem;
  color: var(--g8b7-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* === Feature List === */
.g8b7-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.g8b7-feature-item {
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius-sm);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--g8b7-border);
  transition: var(--g8b7-transition);
}
.g8b7-feature-item:hover { border-color: var(--g8b7-primary); }
.g8b7-feature-icon {
  font-size: 2.4rem;
  color: var(--g8b7-primary);
  margin-bottom: 0.8rem;
}
.g8b7-feature-label {
  font-size: 1.2rem;
  color: var(--g8b7-text-white);
  font-weight: 600;
}

/* === Stats Bar === */
.g8b7-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--g8b7-border);
  border-bottom: 1px solid var(--g8b7-border);
}
.g8b7-stat-item { text-align: center; }
.g8b7-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g8b7-primary);
}
.g8b7-stat-label {
  font-size: 1.1rem;
  color: var(--g8b7-text-muted);
  margin-top: 0.3rem;
}

/* === Testimonials === */
.g8b7-testimonial {
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--g8b7-primary);
}
.g8b7-testimonial-text {
  font-size: 1.3rem;
  color: var(--g8b7-text-muted);
  font-style: italic;
  margin-bottom: 0.8rem;
}
.g8b7-testimonial-author {
  font-size: 1.2rem;
  color: var(--g8b7-secondary);
  font-weight: 600;
}

/* === FAQ Accordion === */
.g8b7-faq-item {
  background: var(--g8b7-bg-card);
  border-radius: var(--g8b7-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--g8b7-border);
}
.g8b7-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g8b7-secondary);
  padding: 1.4rem;
}
.g8b7-faq-a {
  font-size: 1.2rem;
  color: var(--g8b7-text-muted);
  padding: 0 1.4rem 1.4rem;
  line-height: 1.7;
}

/* === Breadcrumb === */
.g8b7-breadcrumb {
  padding: 1.2rem 0;
  font-size: 1.2rem;
  color: var(--g8b7-text-muted);
}
.g8b7-breadcrumb a { color: var(--g8b7-secondary); }

/* === Responsive === */
@media (max-width: 768px) {
  main, .g8b7-main-content {
    padding-bottom: 80px;
  }
  .g8b7-bottom-nav {
    display: block;
  }
  .g8b7-header-actions .g8b7-btn {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
  .g8b7-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
  .g8b7-game-name { font-size: 0.9rem; }
}

@media (min-width: 769px) {
  .g8b7-bottom-nav { display: none; }
  .g8b7-container { max-width: 430px; }
}

/* === Utility === */
.g8b7-text-center { text-align: center; }
.g8b7-mt-1 { margin-top: 1rem; }
.g8b7-mt-2 { margin-top: 2rem; }
.g8b7-mb-1 { margin-bottom: 1rem; }
.g8b7-mb-2 { margin-bottom: 2rem; }
.g8b7-pt-header { padding-top: 5.6rem; }
