/**
 * Lodi291 - Theme Stylesheet
 * All classes prefixed with g16a-, variables with --g16a-
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --g16a-primary: #BF360C;
  --g16a-primary-light: #E65100;
  --g16a-primary-dark: #8B2500;
  --g16a-bg: #141414;
  --g16a-bg-light: #1E1E1E;
  --g16a-bg-card: #1A1A1A;
  --g16a-bg-hover: #2A2A2A;
  --g16a-text: #F5F5F5;
  --g16a-text-muted: #B0B0B0;
  --g16a-text-dim: #808080;
  --g16a-border: #333333;
  --g16a-border-light: #444444;
  --g16a-accent: #FF6D00;
  --g16a-success: #4CAF50;
  --g16a-warning: #FFB300;
  --g16a-radius: 8px;
  --g16a-radius-lg: 12px;
  --g16a-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --g16a-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.6);
  --g16a-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g16a-bg);
  color: var(--g16a-text);
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g16a-primary); text-decoration: none; }
a:hover { color: var(--g16a-accent); }

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

/* Header */
.g16a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--g16a-bg);
  border-bottom: 1px solid var(--g16a-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  transition: var(--g16a-transition);
}

.g16a-header.g16a-scrolled {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: var(--g16a-shadow);
}

.g16a-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g16a-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.g16a-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g16a-primary);
  letter-spacing: 0.5px;
}

.g16a-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g16a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--g16a-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g16a-transition);
  min-height: 36px;
  text-decoration: none;
}

.g16a-btn-primary {
  background: var(--g16a-primary);
  color: #fff;
}
.g16a-btn-primary:hover {
  background: var(--g16a-primary-light);
  color: #fff;
  transform: scale(1.05);
}

.g16a-btn-outline {
  background: transparent;
  color: var(--g16a-primary);
  border: 1.5px solid var(--g16a-primary);
}
.g16a-btn-outline:hover {
  background: var(--g16a-primary);
  color: #fff;
}

.g16a-btn-lg {
  padding: 12px 24px;
  font-size: 1.5rem;
  min-height: 44px;
}

.g16a-btn-block {
  display: flex;
  width: 100%;
}

.g16a-menu-toggle {
  background: none;
  border: none;
  color: var(--g16a-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu Overlay */
.g16a-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g16a-transition);
}
.g16a-menu-overlay.g16a-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Side Menu */
.g16a-mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--g16a-bg-light);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.g16a-mobile-menu.g16a-active {
  left: 0;
}

.g16a-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--g16a-border);
  margin-bottom: 10px;
}

.g16a-menu-header img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.g16a-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g16a-primary);
}

.g16a-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--g16a-text);
  font-size: 1.4rem;
  transition: var(--g16a-transition);
  border-left: 3px solid transparent;
}

.g16a-menu-link:hover, .g16a-menu-link.g16a-current {
  background: var(--g16a-bg-hover);
  color: var(--g16a-primary);
  border-left-color: var(--g16a-primary);
}

.g16a-menu-link i, .g16a-menu-link .material-icons {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* Main Content */
.g16a-main {
  padding-top: 56px;
  padding-bottom: 20px;
}

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

.g16a-container {
  width: 100%;
  padding: 0 12px;
}

/* Carousel */
.g16a-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--g16a-radius-lg);
  margin-bottom: 16px;
}

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

.g16a-carousel-slide.g16a-active {
  opacity: 1;
}

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

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

.g16a-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--g16a-transition);
}
.g16a-carousel-dot.g16a-active {
  background: var(--g16a-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section Titles */
.g16a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g16a-text);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g16a-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g16a-section-title i, .g16a-section-title .material-icons {
  color: var(--g16a-primary);
  font-size: 2rem;
}

/* Game Grid */
.g16a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.g16a-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g16a-transition);
  padding: 6px;
  border-radius: var(--g16a-radius);
}

.g16a-game-item:hover {
  background: var(--g16a-bg-hover);
  transform: translateY(-2px);
}

.g16a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g16a-radius);
  margin-bottom: 4px;
  border: 1px solid var(--g16a-border);
}

.g16a-game-item span {
  font-size: 1.1rem;
  color: var(--g16a-text-muted);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards & Modules */
.g16a-card {
  background: var(--g16a-bg-card);
  border: 1px solid var(--g16a-border);
  border-radius: var(--g16a-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.g16a-card h3 {
  font-size: 1.6rem;
  color: var(--g16a-primary);
  margin-bottom: 10px;
}

.g16a-card p {
  font-size: 1.3rem;
  color: var(--g16a-text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Promo Banner */
.g16a-promo-banner {
  background: linear-gradient(135deg, var(--g16a-primary-dark), var(--g16a-primary));
  border-radius: var(--g16a-radius-lg);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.g16a-promo-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.g16a-promo-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* FAQ */
.g16a-faq-item {
  border-bottom: 1px solid var(--g16a-border);
  padding: 12px 0;
}

.g16a-faq-item:last-child {
  border-bottom: none;
}

.g16a-faq-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--g16a-text);
  margin-bottom: 4px;
}

.g16a-faq-item p {
  font-size: 1.2rem;
  color: var(--g16a-text-muted);
}

/* Winners Table */
.g16a-winners-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g16a-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--g16a-bg-light);
  border-radius: var(--g16a-radius);
  font-size: 1.2rem;
}

.g16a-winner-name {
  color: var(--g16a-text);
  font-weight: 600;
}

.g16a-winner-game {
  color: var(--g16a-text-muted);
  flex: 1;
  margin: 0 8px;
  text-align: center;
}

.g16a-winner-amount {
  color: var(--g16a-success);
  font-weight: 700;
}

/* Payment Methods */
.g16a-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g16a-payment-item {
  background: var(--g16a-bg-light);
  border: 1px solid var(--g16a-border);
  border-radius: var(--g16a-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--g16a-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.g16a-footer {
  background: var(--g16a-bg-light);
  border-top: 1px solid var(--g16a-border);
  padding: 24px 16px;
  text-align: center;
}

.g16a-footer-desc {
  font-size: 1.2rem;
  color: var(--g16a-text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.g16a-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.g16a-footer-links a {
  font-size: 1.2rem;
  color: var(--g16a-text-muted);
  padding: 6px 10px;
  background: var(--g16a-bg);
  border-radius: var(--g16a-radius);
  transition: var(--g16a-transition);
}
.g16a-footer-links a:hover {
  color: var(--g16a-primary);
  background: var(--g16a-bg-hover);
}

.g16a-footer-copy {
  font-size: 1.1rem;
  color: var(--g16a-text-dim);
  margin-top: 12px;
}

/* Bottom Navigation */
.g16a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--g16a-bg-light);
  border-top: 1px solid var(--g16a-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

@media (min-width: 769px) {
  .g16a-bottom-nav { display: none; }
}

.g16a-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--g16a-text-dim);
  cursor: pointer;
  transition: var(--g16a-transition);
  border-radius: var(--g16a-radius);
  padding: 4px;
}

.g16a-nav-btn i,
.g16a-nav-btn .material-icons,
.g16a-nav-btn .bi {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.g16a-nav-btn span {
  font-size: 1rem;
  line-height: 1;
}

.g16a-nav-btn:hover,
.g16a-nav-btn.g16a-active {
  color: var(--g16a-primary);
  transform: scale(1.08);
}

/* Utility */
.g16a-text-center { text-align: center; }
.g16a-mt-8 { margin-top: 8px; }
.g16a-mt-16 { margin-top: 16px; }
.g16a-mb-8 { margin-bottom: 8px; }
.g16a-mb-16 { margin-bottom: 16px; }
.g16a-py-16 { padding: 16px 0; }

/* Highlight badge */
.g16a-badge {
  display: inline-block;
  background: var(--g16a-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Star rating */
.g16a-stars {
  color: var(--g16a-warning);
  font-size: 1.2rem;
}

/* Testimonial */
.g16a-testimonial {
  background: var(--g16a-bg-light);
  border-left: 3px solid var(--g16a-primary);
  padding: 12px 14px;
  border-radius: 0 var(--g16a-radius) var(--g16a-radius) 0;
  margin-bottom: 10px;
}

.g16a-testimonial p {
  font-size: 1.2rem;
  color: var(--g16a-text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.g16a-testimonial strong {
  font-size: 1.2rem;
  color: var(--g16a-primary);
}

/* CTA Section */
.g16a-cta {
  background: linear-gradient(135deg, var(--g16a-primary-dark) 0%, var(--g16a-primary) 100%);
  border-radius: var(--g16a-radius-lg);
  padding: 24px 16px;
  text-align: center;
  margin: 20px 0;
}

.g16a-cta h2 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.g16a-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Internal link styling */
.g16a-internal-link {
  color: var(--g16a-primary);
  text-decoration: underline;
  text-decoration-color: rgba(191, 54, 12, 0.3);
  text-underline-offset: 2px;
}
.g16a-internal-link:hover {
  color: var(--g16a-accent);
  text-decoration-color: var(--g16a-accent);
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .g16a-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
