/**
 * JiliAce - Theme Stylesheet
 * CSS class prefix: g88b-
 * Color palette: #808080, #20B2AA, #006400, #2C3E50, #9AFF9A, #495057
 * Dark colors for backgrounds, light colors for text
 */

/* === CSS Variables === */
:root {
  --g88b-primary: #20B2AA;
  --g88b-primary-dark: #006400;
  --g88b-bg-dark: #2C3E50;
  --g88b-bg-darker: #1a2632;
  --g88b-text-light: #9AFF9A;
  --g88b-text-muted: #808080;
  --g88b-text-dark: #495057;
  --g88b-accent: #20B2AA;
  --g88b-accent-glow: rgba(32, 178, 170, 0.3);
  --g88b-success: #006400;
  --g88b-white: #ffffff;
  --g88b-off-white: #f0f4f3;
  --g88b-radius: 0.8rem;
  --g88b-radius-sm: 0.4rem;
  --g88b-shadow: 0 2px 8px rgba(0,0,0,0.15);
  --g88b-shadow-lg: 0 4px 16px rgba(0,0,0,0.25);
  --g88b-header-h: 5.6rem;
  --g88b-bottom-nav-h: 6.4rem;
}

/* === Reset & Base === */
*, *::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, Oxygen, sans-serif;
  background-color: var(--g88b-bg-darker);
  color: var(--g88b-white);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--g88b-text-light);
}

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

/* === Header === */
.g88b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g88b-bg-dark) 0%, var(--g88b-bg-darker) 100%);
  border-bottom: 2px solid var(--g88b-primary);
  height: var(--g88b-header-h);
  display: flex;
  align-items: center;
  padding: 0 1.2rem;
}

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

.g88b-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g88b-logo-wrap img {
  width: 3.2rem;
  height: 3.2rem;
}

.g88b-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g88b-primary);
  letter-spacing: 0.05em;
}

.g88b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g88b-btn-register {
  background: var(--g88b-primary);
  color: var(--g88b-bg-dark);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--g88b-radius-sm);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.g88b-btn-register:hover {
  background: var(--g88b-text-light);
  transform: scale(1.05);
}

.g88b-btn-login {
  background: transparent;
  color: var(--g88b-primary);
  border: 1.5px solid var(--g88b-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--g88b-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.g88b-btn-login:hover {
  background: rgba(32, 178, 170, 0.15);
}

.g88b-menu-toggle {
  background: none;
  border: none;
  color: var(--g88b-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.g88b-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--g88b-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.g88b-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.g88b-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g88b-primary);
}

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

.g88b-mobile-menu-links {
  padding: 1rem 0;
}

.g88b-mobile-menu-links a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--g88b-white);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.g88b-mobile-menu-links a:hover {
  background: rgba(32, 178, 170, 0.1);
  color: var(--g88b-primary);
}

/* === Main Content === */
.g88b-main {
  padding-top: var(--g88b-header-h);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .g88b-main {
    padding-bottom: var(--g88b-bottom-nav-h);
  }
}

.g88b-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g88b-section {
  padding: 2.4rem 0;
}

.g88b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g88b-primary);
  margin-bottom: 1.6rem;
  text-align: center;
}

.g88b-section-subtitle {
  font-size: 1.3rem;
  color: var(--g88b-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* === Carousel === */
.g88b-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g88b-radius);
  margin-bottom: 2rem;
}

.g88b-slides-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 45%;
}

.g88b-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.g88b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g88b-slide-active {
  opacity: 1;
}

.g88b-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 5;
}

.g88b-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.g88b-dot-active {
  background: var(--g88b-primary);
  transform: scale(1.2);
}

/* === Game Grid === */
.g88b-game-section {
  margin-bottom: 2rem;
}

.g88b-game-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g88b-text-light);
  margin-bottom: 1.2rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--g88b-primary);
}

.g88b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g88b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.g88b-game-item:hover {
  transform: translateY(-3px);
}

.g88b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g88b-radius-sm);
  border: 1px solid rgba(32, 178, 170, 0.2);
}

.g88b-game-name {
  font-size: 1.1rem;
  color: var(--g88b-off-white);
  margin-top: 0.4rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* === Cards & Content Blocks === */
.g88b-card {
  background: var(--g88b-bg-dark);
  border-radius: var(--g88b-radius);
  padding: 2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(32, 178, 170, 0.1);
}

.g88b-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g88b-primary);
  margin-bottom: 1rem;
}

.g88b-card p {
  font-size: 1.3rem;
  line-height: 2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.g88b-card p:last-child {
  margin-bottom: 0;
}

/* === Promo Button === */
.g88b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g88b-primary) 0%, var(--g88b-primary-dark) 100%);
  color: var(--g88b-white);
  padding: 1rem 2.4rem;
  border-radius: var(--g88b-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 3px 12px var(--g88b-accent-glow);
}

.g88b-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--g88b-accent-glow);
}

.g88b-promo-link {
  color: var(--g88b-text-light);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* === Footer === */
.g88b-footer {
  background: var(--g88b-bg-dark);
  padding: 2.4rem 0;
  border-top: 2px solid var(--g88b-primary);
}

.g88b-footer-desc {
  font-size: 1.2rem;
  color: var(--g88b-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.6rem;
}

.g88b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.g88b-footer-link {
  background: rgba(32, 178, 170, 0.1);
  color: var(--g88b-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--g88b-radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.g88b-footer-link:hover {
  background: rgba(32, 178, 170, 0.25);
}

.g88b-footer-copy {
  font-size: 1.1rem;
  color: var(--g88b-text-muted);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* === Bottom Navigation === */
.g88b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--g88b-bottom-nav-h);
  background: linear-gradient(180deg, rgba(44,62,80,0.97) 0%, rgba(26,38,50,0.99) 100%);
  border-top: 2px solid var(--g88b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0;
}

.g88b-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(--g88b-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: var(--g88b-radius-sm);
}

.g88b-bottom-btn:hover {
  color: var(--g88b-primary);
  background: rgba(32, 178, 170, 0.08);
}

.g88b-bottom-btn:active {
  transform: scale(0.92);
}

.g88b-bottom-btn-active {
  color: var(--g88b-primary);
}

.g88b-bottom-btn-active .g88b-bottom-icon {
  color: var(--g88b-text-light);
  filter: drop-shadow(0 0 4px var(--g88b-accent-glow));
}

.g88b-bottom-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.g88b-bottom-label {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
}

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

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

/* === Desktop Styles === */
@media (min-width: 769px) {
  .g88b-container {
    max-width: 960px;
  }

  .g88b-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
  }

  .g88b-header-inner {
    max-width: 960px;
  }

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

/* === H Tags === */
h1.g88b-h1, h2.g88b-h2, h3.g88b-h3 {
  color: var(--g88b-primary);
  line-height: 1.4;
}

h1.g88b-h1 {
  font-size: 2.2rem;
  font-weight: 800;
}

h2.g88b-h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

h3.g88b-h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* === FAQ Accordion === */
.g88b-faq-item {
  background: var(--g88b-bg-dark);
  border-radius: var(--g88b-radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(32, 178, 170, 0.1);
  overflow: hidden;
}

.g88b-faq-q {
  padding: 1.2rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g88b-text-light);
  cursor: pointer;
}

.g88b-faq-a {
  padding: 0 1.6rem 1.2rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8rem;
}

/* === Winner Badge === */
.g88b-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 100, 0, 0.2);
  color: var(--g88b-text-light);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.1rem;
}

/* === Feature Grid === */
.g88b-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.g88b-feature-item {
  background: var(--g88b-bg-dark);
  border-radius: var(--g88b-radius-sm);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid rgba(32, 178, 170, 0.08);
  transition: all 0.2s;
}

.g88b-feature-item:hover {
  border-color: var(--g88b-primary);
  transform: translateY(-2px);
}

.g88b-feature-icon {
  font-size: 2.4rem;
  color: var(--g88b-primary);
  margin-bottom: 0.6rem;
}

.g88b-feature-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g88b-off-white);
}

.g88b-feature-desc {
  font-size: 1.05rem;
  color: var(--g88b-text-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}
