/**
 * jl777 Layout CSS - Module: layout-a2b8
 * Prefix: gb8a-
 * Color palette: #00FA9A (accent) | #BF360C (highlight) | #FFFFFF (text) | #1E1E1E (bg)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --gb8a-primary: #00FA9A;
  --gb8a-highlight: #BF360C;
  --gb8a-text: #FFFFFF;
  --gb8a-bg: #1E1E1E;
  --gb8a-bg-light: #2A2A2A;
  --gb8a-bg-card: #333333;
  --gb8a-border: #444444;
  --gb8a-text-muted: #AAAAAA;
  --gb8a-gradient-start: #00FA9A;
  --gb8a-gradient-end: #00CC7A;
  --gb8a-danger: #BF360C;
  --gb8a-gold: #FFD700;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, sans-serif;
  background: var(--gb8a-bg);
  color: var(--gb8a-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gb8a-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gb8a-gradient-end); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== HEADER ===== */
.gb8a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(180deg, #1E1E1E 0%, #252525 100%);
  border-bottom: 2px solid var(--gb8a-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 250, 154, 0.15);
}

.gb8a-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.gb8a-logo-text {
  font-size: 2.0rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gb8a-primary), #88FFCC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

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

.gb8a-btn-register, .gb8a-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.gb8a-btn-register {
  background: linear-gradient(135deg, var(--gb8a-highlight), #E64A19);
  color: #fff;
  box-shadow: 0 2px 8px rgba(191, 54, 12, 0.4);
}
.gb8a-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(191, 54, 12, 0.6); }

.gb8a-btn-login {
  background: transparent;
  color: var(--gb8a-primary);
  border: 2px solid var(--gb8a-primary);
}
.gb8a-btn-login:hover { background: rgba(0, 250, 154, 0.1); }

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

/* ===== MOBILE MENU ===== */
.gb8a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: #222;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.gb8a-menu-active { right: 0 !important; }

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

.gb8a-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gb8a-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gb8a-border);
}

.gb8a-menu-list { display: flex; flex-direction: column; gap: 0.4rem; }

.gb8a-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  color: var(--gb8a-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}
.gb8a-menu-item:hover { background: var(--gb8a-bg-light); color: var(--gb8a-primary); }
.gb8a-menu-item i, .gb8a-menu-item .material-icons { font-size: 2rem; color: var(--gb8a-primary); }

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

/* ===== MAIN CONTENT ===== */
.gb8a-main {
  padding-top: 56px;
  min-height: 100vh;
}

.gb8a-container {
  padding: 1.2rem;
}

/* ===== CAROUSEL ===== */
.gb8a-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.gb8a-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.gb8a-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.gb8a-slide-active { opacity: 1; }

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

.gb8a-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.gb8a-dot-active { background: var(--gb8a-primary); transform: scale(1.3); }

/* ===== SECTION TITLES ===== */
.gb8a-section-title {
  font-size: 2.0rem;
  font-weight: 800;
  color: var(--gb8a-text);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gb8a-primary);
  line-height: 1.3;
}

.gb8a-section-subtitle {
  font-size: 1.4rem;
  color: var(--gb8a-text-muted);
  margin-bottom: 1.5rem;
}

/* ===== GAME GRID ===== */
.gb8a-game-section { margin-bottom: 2rem; }

.gb8a-game-category {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb8a-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.gb8a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.gb8a-game-item:hover { transform: translateY(-3px); }

.gb8a-game-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gb8a-border);
  transition: border-color 0.2s;
}
.gb8a-game-item:hover .gb8a-game-img { border-color: var(--gb8a-primary); }

.gb8a-game-name {
  font-size: 1.1rem;
  color: var(--gb8a-text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

/* ===== CONTENT CARDS ===== */
.gb8a-card {
  background: var(--gb8a-bg-light);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gb8a-border);
}

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

.gb8a-card-text {
  font-size: 1.4rem;
  color: var(--gb8a-text-muted);
  line-height: 1.6;
}

.gb8a-highlight-text {
  color: var(--gb8a-primary);
  font-weight: 600;
}

/* ===== PROMO BUTTONS ===== */
.gb8a-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gb8a-highlight), #E64A19);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(191, 54, 12, 0.35);
  margin: 0.5rem 0;
}
.gb8a-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(191, 54, 12, 0.5); }

.gb8a-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gb8a-primary);
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--gb8a-primary);
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  margin: 0.4rem 0;
}
.gb8a-promo-btn-outline:hover { background: rgba(0, 250, 154, 0.1); }

/* ===== TEXT LINK ===== */
.gb8a-text-link {
  color: var(--gb8a-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.gb8a-text-link:hover { color: #88FFCC; }

/* ===== FAQ ===== */
.gb8a-faq-item {
  background: var(--gb8a-bg-light);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--gb8a-primary);
}

.gb8a-faq-q {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gb8a-primary);
  margin-bottom: 0.6rem;
}

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

/* ===== FOOTER ===== */
.gb8a-footer {
  background: #161616;
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--gb8a-primary);
}

.gb8a-footer-brand {
  font-size: 1.4rem;
  color: var(--gb8a-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.gb8a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.gb8a-footer-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gb8a-bg-card);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--gb8a-text-muted);
  transition: all 0.2s;
}
.gb8a-footer-link:hover { color: var(--gb8a-primary); background: var(--gb8a-bg-light); }

.gb8a-partners {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gb8a-partner-img {
  height: 24px;
  opacity: 0.6;
  filter: grayscale(50%);
  transition: opacity 0.2s;
}
.gb8a-partner-img:hover { opacity: 1; }

.gb8a-footer-copy {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* ===== BOTTOM NAV ===== */
.gb8a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #252525 0%, #1A1A1A 100%);
  border-top: 2px solid var(--gb8a-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 250, 154, 0.1);
}

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

.gb8a-bottom-btn i,
.gb8a-bottom-btn .material-icons,
.gb8a-bottom-btn ion-icon,
.gb8a-bottom-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
  transition: color 0.2s, transform 0.2s;
}

.gb8a-bottom-btn span {
  font-size: 1.0rem;
  font-weight: 600;
  transition: color 0.2s;
}

.gb8a-bottom-btn:hover,
.gb8a-bottom-btn.gb8a-active {
  color: var(--gb8a-primary);
}
.gb8a-bottom-btn:hover i,
.gb8a-bottom-btn:hover .material-icons,
.gb8a-bottom-btn:hover ion-icon {
  transform: scale(1.15);
  color: var(--gb8a-primary);
}
.gb8a-bottom-btn.gb8a-active i,
.gb8a-bottom-btn.gb8a-active .material-icons,
.gb8a-bottom-btn.gb8a-active ion-icon {
  color: var(--gb8a-primary);
}
.gb8a-bottom-btn.gb8a-active span { color: var(--gb8a-primary); }

.gb8a-btn-pressed {
  transform: scale(0.92);
}

/* ===== WINNER TICKER ===== */
.gb8a-winner-ticker {
  background: var(--gb8a-bg-card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.gb8a-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gb8a-winner-row:last-child { border-bottom: none; }

.gb8a-winner-name { font-size: 1.3rem; color: var(--gb8a-primary); font-weight: 600; }
.gb8a-winner-game { font-size: 1.2rem; color: var(--gb8a-text-muted); }
.gb8a-winner-amount { font-size: 1.3rem; color: var(--gb8a-gold); font-weight: 700; }

/* ===== PAYMENT ICONS ===== */
.gb8a-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

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

/* ===== TESTIMONIALS ===== */
.gb8a-testimonial {
  background: var(--gb8a-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gb8a-highlight);
}

.gb8a-testimonial-user {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gb8a-primary);
  margin-bottom: 0.4rem;
}

.gb8a-testimonial-text {
  font-size: 1.3rem;
  color: var(--gb8a-text-muted);
  line-height: 1.5;
}

/* ===== APP DOWNLOAD CTA ===== */
.gb8a-app-cta {
  background: linear-gradient(135deg, var(--gb8a-bg-light) 0%, var(--gb8a-bg-card) 100%);
  border-radius: 14px;
  padding: 2rem 1.4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gb8a-border);
}

.gb8a-app-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gb8a-primary);
  margin-bottom: 0.8rem;
}

.gb8a-app-cta-text {
  font-size: 1.4rem;
  color: var(--gb8a-text-muted);
  margin-bottom: 1.2rem;
}

/* ===== UTILITY ===== */
.gb8a-mb-1 { margin-bottom: 1rem; }
.gb8a-mb-2 { margin-bottom: 2rem; }
.gb8a-mt-1 { margin-top: 1rem; }
.gb8a-mt-2 { margin-top: 2rem; }
.gb8a-text-center { text-align: center; }
.gb8a-flex-center { display: flex; justify-content: center; align-items: center; }

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

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