/*!
 * 788b.click - Theme stylesheet (css/theme-2117.css)
 * Mobile-first Vietnamese casino gaming portal
 * All custom classes use the g17e- prefix for namespace isolation
 * Palette: #880E4F | #2D2D2D | #FFB3BA | #FF5722 | #2E8B57
 */
:root {
  --g17e-primary: #880E4F;
  --g17e-primary-dark: #5C082E;
  --g17e-bg: #2D2D2D;
  --g17e-bg-alt: #1A1A1A;
  --g17e-bg-card: #353535;
  --g17e-text: #FFB3BA;
  --g17e-text-light: #FFFFFF;
  --g17e-accent: #FF5722;
  --g17e-success: #2E8B57;
  --g17e-gold: #FFC857;
  --g17e-border: rgba(255, 179, 186, 0.18);
  --g17e-radius: 12px;
  --g17e-radius-sm: 8px;
  --g17e-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --g17e-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.55);
  --g17e-header-h: 56px;
  --g17e-bottomnav-h: 62px;
  --g17e-maxw: 430px;
}

/* Root font scaling for rem-based layout (62.5% base) */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--g17e-bg);
  color: var(--g17e-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: var(--g17e-maxw);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--g17e-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout primitives */
.g17e-container { width: 100%; max-width: var(--g17e-maxw); margin: 0 auto; padding: 0 1.2rem; }
.g17e-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.g17e-section { padding: 2rem 1.2rem; }
.g17e-section-alt { background: var(--g17e-bg-alt); }
.g17e-grid { display: grid; gap: 1rem; }

/* Header */
.g17e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g17e-primary) 0%, var(--g17e-primary-dark) 100%);
  height: var(--g17e-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--g17e-shadow);
  max-width: var(--g17e-maxw); margin: 0 auto;
}
.g17e-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--g17e-text-light); }
.g17e-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g17e-logo-text { font-weight: 700; font-size: 1.7rem; letter-spacing: 0.5px; }
.g17e-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g17e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: var(--g17e-radius-sm);
  font-size: 1.3rem; font-weight: 700; min-height: 38px; min-width: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.g17e-btn:active { transform: scale(0.94); }
.g17e-btn-login { background: transparent; color: var(--g17e-text-light); border: 1.5px solid var(--g17e-text); }
.g17e-btn-register { background: var(--g17e-accent); color: #fff; box-shadow: 0 3px 10px rgba(255, 87, 34, 0.4); }
.g17e-btn-primary { background: var(--g17e-accent); color: #fff; }
.g17e-btn-success { background: var(--g17e-success); color: #fff; }
.g17e-btn-gold { background: var(--g17e-gold); color: var(--g17e-bg); }
.g17e-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }
.g17e-menu-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: var(--g17e-text-light); font-size: 2rem; background: rgba(255,255,255,0.08); border-radius: 8px;
}

/* Mobile menu (expandable) */
.g17e-mobile-menu {
  position: fixed; top: var(--g17e-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--g17e-bg-alt);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  max-width: var(--g17e-maxw); margin: 0 auto;
  box-shadow: var(--g17e-shadow-lg);
}
.g17e-mobile-menu.g17e-menu-open { max-height: 80vh; overflow-y: auto; }
.g17e-menu-list { list-style: none; padding: 0.5rem 0; }
.g17e-menu-list li a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.4rem;
  color: var(--g17e-text-light); border-bottom: 1px solid var(--g17e-border); font-size: 1.4rem;
}
.g17e-menu-list li a:active { background: rgba(255, 179, 186, 0.08); }
.g17e-menu-list li a i { width: 22px; text-align: center; color: var(--g17e-text); }

/* Main content */
.g17e-main { flex: 1; padding-top: var(--g17e-header-h); }
@media (max-width: 768px) {
  .g17e-main { padding-bottom: calc(var(--g17e-bottomnav-h) + 1.2rem); }
}

/* Hero carousel */
.g17e-carousel { position: relative; width: 100%; overflow: hidden; }
.g17e-slides { display: flex; flex-direction: column; }
.g17e-slide {
  display: none; position: relative; width: 100%;
  aspect-ratio: 16 / 9; cursor: pointer;
}
.g17e-slide.g17e-slide-active { display: block; }
.g17e-slide img { width: 100%; height: 100%; object-fit: cover; }
.g17e-slide-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
}
.g17e-slide-title { color: var(--g17e-text-light); font-size: 1.8rem; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.7); }
.g17e-slide-sub { color: var(--g17e-text); font-size: 1.3rem; margin-top: 0.2rem; }
.g17e-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 2; }
.g17e-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: background 0.2s; }
.g17e-dot.g17e-dot-active { background: var(--g17e-accent); }

/* Section headings */
.g17e-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--g17e-text-light);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem;
}
.g17e-section-title i { color: var(--g17e-accent); }
.g17e-section-sub { color: var(--g17e-text); font-size: 1.3rem; margin-bottom: 1.2rem; }
.g17e-divider { height: 3px; width: 48px; background: var(--g17e-accent); border-radius: 2px; margin-bottom: 1.2rem; }

/* Category filter chips */
.g17e-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch; }
.g17e-chips::-webkit-scrollbar { display: none; }
.g17e-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 20px;
  background: var(--g17e-bg-card); color: var(--g17e-text-light);
  font-size: 1.25rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--g17e-border);
}
.g17e-chip.g17e-chip-active { background: var(--g17e-accent); color: #fff; border-color: var(--g17e-accent); }

/* Game grid */
.g17e-game-section { margin-bottom: 1.6rem; }
.g17e-game-cat-title {
  font-size: 1.6rem; font-weight: 700; color: var(--g17e-gold);
  margin-bottom: 0.8rem; padding-left: 0.8rem; border-left: 4px solid var(--g17e-primary);
}
.g17e-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
@media (min-width: 400px) { .g17e-game-grid { grid-template-columns: repeat(4, 1fr); } }
.g17e-game-card {
  background: var(--g17e-bg-card); border-radius: var(--g17e-radius-sm); overflow: hidden;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--g17e-border); position: relative;
}
.g17e-game-card:active { transform: scale(0.95); box-shadow: var(--g17e-shadow); }
.g17e-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.g17e-game-card-name {
  font-size: 1.05rem; color: var(--g17e-text-light); text-align: center;
  padding: 0.4rem 0.3rem 0.5rem; line-height: 1.25rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.g17e-game-card-badge {
  position: absolute; top: 4px; left: 4px; background: var(--g17e-accent); color: #fff;
  font-size: 0.9rem; font-weight: 700; padding: 1px 5px; border-radius: 4px;
}

/* Feature/info cards */
.g17e-card {
  background: var(--g17e-bg-card); border-radius: var(--g17e-radius); padding: 1.4rem;
  margin-bottom: 1rem; box-shadow: var(--g17e-shadow); border: 1px solid var(--g17e-border);
}
.g17e-card-title { font-size: 1.5rem; font-weight: 700; color: var(--g17e-gold); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.g17e-card-text { color: var(--g17e-text-light); font-size: 1.3rem; line-height: 1.6rem; }
.g17e-card-text strong { color: var(--g17e-text); }

/* Stat grid (RTP / winners) */
.g17e-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.g17e-stat-item { background: var(--g17e-bg-alt); border-radius: var(--g17e-radius-sm); padding: 0.9rem; text-align: center; }
.g17e-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--g17e-accent); }
.g17e-stat-label { font-size: 1.1rem; color: var(--g17e-text); margin-top: 0.2rem; }

/* Testimonials */
.g17e-testimonial { display: flex; gap: 0.8rem; padding: 1rem; background: var(--g17e-bg-alt); border-radius: var(--g17e-radius-sm); margin-bottom: 0.7rem; border-left: 3px solid var(--g17e-success); }
.g17e-testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--g17e-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.g17e-testimonial-name { font-size: 1.25rem; font-weight: 700; color: var(--g17e-gold); }
.g17e-testimonial-text { font-size: 1.2rem; color: var(--g17e-text-light); margin-top: 0.2rem; }

/* Payment icons row */
.g17e-payment-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g17e-payment-row .g17e-payment-item { flex: 1 1 calc(50% - 0.6rem); background: var(--g17e-bg-alt); border-radius: var(--g17e-radius-sm); padding: 0.8rem; display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; color: var(--g17e-text-light); border: 1px solid var(--g17e-border); }
.g17e-payment-row .g17e-payment-item i { color: var(--g17e-accent); font-size: 2rem; }

/* Winners list */
.g17e-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--g17e-border); font-size: 1.25rem; }
.g17e-winner-row:last-child { border-bottom: none; }
.g17e-winner-name { color: var(--g17e-text-light); }
.g17e-winner-amount { color: var(--g17e-gold); font-weight: 800; }

/* FAQ */
.g17e-faq-item { background: var(--g17e-bg-card); border-radius: var(--g17e-radius-sm); margin-bottom: 0.6rem; overflow: hidden; border: 1px solid var(--g17e-border); }
.g17e-faq-q { padding: 1rem 1.2rem; font-weight: 700; color: var(--g17e-text-light); display: flex; justify-content: space-between; align-items: center; }
.g17e-faq-q i { color: var(--g17e-accent); }
.g17e-faq-a { padding: 0 1.2rem 1rem; color: var(--g17e-text-light); font-size: 1.25rem; line-height: 1.6rem; }

/* App download CTA */
.g17e-app-cta { background: linear-gradient(135deg, var(--g17e-primary) 0%, var(--g17e-primary-dark) 100%); border-radius: var(--g17e-radius); padding: 1.4rem; text-align: center; margin-bottom: 1rem; }
.g17e-app-cta-title { color: var(--g17e-text-light); font-size: 1.7rem; font-weight: 800; margin-bottom: 0.4rem; }
.g17e-app-cta-sub { color: var(--g17e-text); font-size: 1.25rem; margin-bottom: 1rem; }
.g17e-app-cta-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* Promo link text */
.g17e-promo-link { color: var(--g17e-accent); font-weight: 700; text-decoration: underline; }
.g17e-promo-link:hover { color: var(--g17e-gold); }

/* Footer */
.g17e-footer { background: var(--g17e-bg-alt); padding: 2rem 1.2rem 1.4rem; border-top: 2px solid var(--g17e-primary); }
.g17e-footer-brand { color: var(--g17e-text-light); font-size: 1.3rem; line-height: 1.7rem; margin-bottom: 1rem; }
.g17e-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.g17e-footer-links a { color: var(--g17e-text); font-size: 1.2rem; }
.g17e-footer-links a:hover { color: var(--g17e-accent); }
.g17e-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.g17e-footer-promo .g17e-btn { flex: 1 1 calc(50% - 0.5rem); font-size: 1.2rem; padding: 0.7rem; }
.g17e-footer-copy { color: var(--g17e-text); font-size: 1.1rem; text-align: center; padding-top: 1rem; border-top: 1px solid var(--g17e-border); }

/* Mobile bottom navigation (fixed, 5 buttons) */
.g17e-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g17e-bottomnav-h); background: var(--g17e-bg-alt);
  display: flex; justify-content: space-around; align-items: center;
  border-top: 2px solid var(--g17e-primary);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
  max-width: var(--g17e-maxw); margin: 0 auto;
}
.g17e-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; gap: 2px; color: var(--g17e-text);
  font-size: 1rem; transition: color 0.15s ease, transform 0.15s ease;
  position: relative; flex: 1;
}
.g17e-bottomnav-btn i { font-size: 2.2rem; }
.g17e-bottomnav-btn:active { transform: scale(0.9); }
.g17e-bottomnav-btn.g17e-bottomnav-active { color: var(--g17e-accent); }
.g17e-bottomnav-btn.g17e-bottomnav-active::after {
  content: ""; position: absolute; bottom: 2px; width: 24px; height: 3px;
  background: var(--g17e-accent); border-radius: 2px;
}
.g17e-bottomnav-badge {
  position: absolute; top: 6px; right: 14px; background: var(--g17e-accent); color: #fff;
  font-size: 0.9rem; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
@media (min-width: 769px) { .g17e-bottomnav { display: none; } }

/* Desktop navigation: hide on mobile, show on desktop */
.g17e-desktop-nav { display: none; }
@media (min-width: 769px) {
  .g17e-desktop-nav { display: flex; gap: 1rem; align-items: center; }
  .g17e-desktop-nav a { color: var(--g17e-text-light); font-size: 1.3rem; }
  .g17e-desktop-nav a:hover { color: var(--g17e-accent); }
  body { max-width: 1100px; }
  .g17e-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g17e-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .g17e-main { padding-bottom: 2rem; }
}

/* Utility */
.g17e-text-center { text-align: center; }
.g17e-mt-1 { margin-top: 1rem; }
.g17e-mt-2 { margin-top: 2rem; }
.g17e-mb-1 { margin-bottom: 1rem; }
.g17e-hidden { display: none !important; }
.g17e-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
