/**
 * 520jl - Main Stylesheet
 * All classes use gb44- prefix for namespace isolation
 * Color palette: #80CBC4 | #EEEEEE | #0A0A0A | #708090 | #008B8B | #BC8F8F
 * Mobile-first responsive design, max-width 430px
 */

/* CSS Variables */
:root {
  --gb44-primary: #80CBC4;
  --gb44-secondary: #008B8B;
  --gb44-accent: #BC8F8F;
  --gb44-bg: #0A0A0A;
  --gb44-bg-card: #141414;
  --gb44-bg-elevated: #1A1A1A;
  --gb44-text: #EEEEEE;
  --gb44-text-muted: #708090;
  --gb44-border: #2A2A2A;
  --gb44-gold: #FFD700;
  --gb44-success: #4CAF50;
  --gb44-danger: #E74C3C;
  --gb44-radius: 8px;
  --gb44-radius-lg: 16px;
  --gb44-shadow: 0 2px 8px rgba(0,0,0,0.4);
  --gb44-header-h: 56px;
  --gb44-bottom-nav-h: 60px;
  --gb44-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--gb44-font);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gb44-text);
  background: var(--gb44-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gb44-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gb44-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.gb44-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}
.gb44-wrapper { max-width: 430px; margin: 0 auto; width: 100%; }

/* Header */
.gb44-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gb44-header-h);
  background: var(--gb44-bg);
  border-bottom: 1px solid var(--gb44-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.gb44-header-inner {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gb44-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gb44-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.gb44-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gb44-primary);
  letter-spacing: 0.5px;
}
.gb44-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gb44-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--gb44-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
}
.gb44-btn-register {
  background: var(--gb44-primary);
  color: var(--gb44-bg);
}
.gb44-btn-register:hover { background: #6bc0b5; transform: scale(1.03); }
.gb44-btn-login {
  background: transparent;
  color: var(--gb44-primary);
  border: 1.5px solid var(--gb44-primary);
}
.gb44-btn-login:hover { background: rgba(128,203,196,0.1); }
.gb44-menu-toggle {
  background: none;
  border: none;
  color: var(--gb44-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  transition: transform 0.3s;
}
.gb44-toggle-active { transform: rotate(90deg); }

/* Mobile Menu */
.gb44-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.gb44-overlay-active { opacity: 1; visibility: visible; }
.gb44-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--gb44-bg-elevated);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.gb44-menu-active { right: 0; }
.gb44-mobile-menu .gb44-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gb44-border);
}
.gb44-mobile-menu .gb44-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gb44-primary);
}
.gb44-mobile-menu .gb44-menu-close {
  background: none;
  border: none;
  color: var(--gb44-text-muted);
  font-size: 2rem;
  cursor: pointer;
}
.gb44-mobile-menu ul li {
  margin-bottom: 0.4rem;
}
.gb44-mobile-menu ul li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--gb44-radius);
  color: var(--gb44-text);
  font-size: 1.4rem;
  transition: background 0.2s;
}
.gb44-mobile-menu ul li a:hover {
  background: rgba(128,203,196,0.1);
  color: var(--gb44-primary);
}

/* Main content spacing */
.gb44-main { padding-top: calc(var(--gb44-header-h) + 1rem); }

/* Carousel */
.gb44-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gb44-radius-lg);
  margin-bottom: 1.5rem;
}
.gb44-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.gb44-slide-active { display: block; }
.gb44-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--gb44-radius-lg);
}
.gb44-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.gb44-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.gb44-dot-active { background: var(--gb44-primary); transform: scale(1.3); }

/* Section Titles */
.gb44-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gb44-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gb44-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gb44-section-title i { color: var(--gb44-primary); }

/* Game Grid */
.gb44-game-section { margin-bottom: 2rem; }
.gb44-game-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gb44-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gb44-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gb44-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}
.gb44-game-item:hover { transform: scale(1.05); }
.gb44-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--gb44-radius);
  object-fit: cover;
  border: 1px solid var(--gb44-border);
}
.gb44-game-item span {
  font-size: 1.1rem;
  color: var(--gb44-text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Cards */
.gb44-card {
  background: var(--gb44-bg-card);
  border-radius: var(--gb44-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gb44-border);
}
.gb44-card h2 {
  font-size: 1.6rem;
  color: var(--gb44-primary);
  margin-bottom: 1rem;
}
.gb44-card h3 {
  font-size: 1.4rem;
  color: var(--gb44-text);
  margin-bottom: 0.6rem;
}
.gb44-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--gb44-text-muted);
  margin-bottom: 0.8rem;
}

/* Promo Button Large */
.gb44-promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--gb44-secondary), var(--gb44-primary));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: var(--gb44-radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  margin: 1.5rem 0;
}
.gb44-promo-btn:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(128,203,196,0.4); }

/* Promo text link */
.gb44-promo-link {
  color: var(--gb44-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--gb44-primary);
  cursor: pointer;
}
.gb44-promo-link:hover { color: var(--gb44-accent); border-color: var(--gb44-accent); }

/* Stats Grid */
.gb44-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.gb44-stat-item {
  background: var(--gb44-bg-elevated);
  border-radius: var(--gb44-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--gb44-border);
}
.gb44-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gb44-primary);
}
.gb44-stat-label {
  font-size: 1.1rem;
  color: var(--gb44-text-muted);
  margin-top: 0.3rem;
}

/* Testimonials */
.gb44-testimonial {
  background: var(--gb44-bg-elevated);
  border-radius: var(--gb44-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--gb44-primary);
}
.gb44-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gb44-primary);
  margin-bottom: 0.3rem;
}
.gb44-testimonial-text {
  font-size: 1.2rem;
  color: var(--gb44-text-muted);
  font-style: italic;
}

/* Winners Marquee */
.gb44-winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gb44-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--gb44-bg-elevated);
  border-radius: var(--gb44-radius);
  font-size: 1.2rem;
}
.gb44-winner-name { color: var(--gb44-primary); font-weight: 600; }
.gb44-winner-amount { color: var(--gb44-gold); font-weight: 700; }

/* Payment Methods */
.gb44-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.gb44-payment-item {
  background: var(--gb44-bg-elevated);
  padding: 0.6rem 1rem;
  border-radius: var(--gb44-radius);
  font-size: 1.1rem;
  color: var(--gb44-text-muted);
  border: 1px solid var(--gb44-border);
}

/* FAQ */
.gb44-faq-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gb44-border);
}
.gb44-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gb44-text);
  margin-bottom: 0.4rem;
}
.gb44-faq-a {
  font-size: 1.2rem;
  color: var(--gb44-text-muted);
  line-height: 1.5;
}

/* Footer */
.gb44-footer {
  background: var(--gb44-bg-card);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gb44-border);
}
.gb44-footer-desc {
  font-size: 1.2rem;
  color: var(--gb44-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.gb44-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.gb44-footer-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gb44-bg-elevated);
  border-radius: var(--gb44-radius);
  font-size: 1.1rem;
  color: var(--gb44-text-muted);
  border: 1px solid var(--gb44-border);
  transition: all 0.2s;
}
.gb44-footer-links a:hover {
  color: var(--gb44-primary);
  border-color: var(--gb44-primary);
}
.gb44-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.gb44-footer-promos button {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--gb44-secondary), var(--gb44-primary));
  color: #fff;
  border: none;
  border-radius: var(--gb44-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.gb44-footer-promos button:hover { transform: scale(1.03); }
.gb44-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gb44-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--gb44-border);
}

/* Bottom Mobile Nav */
.gb44-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--gb44-bottom-nav-h);
  background: var(--gb44-bg-card);
  border-top: 1px solid var(--gb44-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.3rem;
}
.gb44-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--gb44-text-muted);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0.3rem;
  border-radius: var(--gb44-radius);
  gap: 0.2rem;
}
.gb44-bottom-nav-item i,
.gb44-bottom-nav-item span.material-symbols-outlined {
  font-size: 22px;
}
.gb44-bottom-nav-item span.gb44-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}
.gb44-bottom-nav-item.gb44-nav-active {
  color: var(--gb44-primary);
}
.gb44-bottom-nav-item:hover {
  color: var(--gb44-primary);
  background: rgba(128,203,196,0.08);
  transform: scale(1.08);
}
.gb44-bottom-nav-item:active {
  transform: scale(0.95);
}

/* Utility Classes */
.gb44-text-center { text-align: center; }
.gb44-text-primary { color: var(--gb44-primary); }
.gb44-text-accent { color: var(--gb44-accent); }
.gb44-text-muted { color: var(--gb44-text-muted); }
.gb44-text-gold { color: var(--gb44-gold); }
.gb44-mt-1 { margin-top: 1rem; }
.gb44-mb-1 { margin-bottom: 1rem; }
.gb44-mb-2 { margin-bottom: 2rem; }

/* Responsive - Desktop */
@media (min-width: 769px) {
  .gb44-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .gb44-main { padding-bottom: 80px; }
  .gb44-footer { padding-bottom: 80px; }
}
