/**
 * jl57 Gaming Platform - Theme Stylesheet
 * All classes use v226- prefix for namespace isolation
 * Mobile-first design, dark gray + gold/blue fintech style
 */

/* CSS Variables */
:root {
  --v226-primary: #FFBF00;
  --v226-bg: #2D2D2D;
  --v226-secondary: #6C757D;
  --v226-accent: #4682B4;
  --v226-text: #FF9500;
  --v226-dark: #1A1A1A;
  --v226-card-bg: #363636;
  --v226-border: #4A4A4A;
  --v226-light: #F5F5F5;
  --v226-accent2: #FF8C00;
  --v226-radius: 8px;
  --v226-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* 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, Ubuntu, sans-serif;
  background-color: var(--v226-bg);
  color: var(--v226-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--v226-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.v226-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: var(--v226-dark);
  border-bottom: 1px solid var(--v226-border);
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.v226-header-scrolled {
  box-shadow: 0 2px 16px rgba(255,191,0,0.15);
}

.v226-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v226-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.v226-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v226-primary);
  letter-spacing: 0.5px;
}

.v226-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v226-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  min-height: 36px;
}

.v226-btn-register {
  background: var(--v226-primary);
  color: var(--v226-dark);
}

.v226-btn-register:hover {
  background: #E5AD00;
  transform: scale(1.03);
}

.v226-btn-login {
  background: transparent;
  color: var(--v226-primary);
  border: 1.5px solid var(--v226-primary);
}

.v226-btn-login:hover {
  background: rgba(255,191,0,0.1);
}

.v226-menu-toggle {
  background: none;
  border: none;
  color: var(--v226-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.v226-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v226-overlay-active {
  opacity: 1;
  visibility: visible;
}

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

.v226-menu-active {
  right: 0;
}

.v226-menu-close {
  background: none;
  border: none;
  color: var(--v226-primary);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 16px;
}

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

.v226-menu-list {
  list-style: none;
}

.v226-menu-list li {
  margin-bottom: 0.5rem;
}

.v226-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--v226-light);
  font-size: 1.4rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.v226-menu-list a:hover {
  background: var(--v226-card-bg);
  color: var(--v226-primary);
}

.v226-menu-list a i,
.v226-menu-list a span.material-icons-outlined {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

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

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

/* ===== CAROUSEL ===== */
.v226-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--v226-dark);
}

.v226-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.v226-slide-active {
  display: block;
}

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

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

.v226-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.v226-dot-active {
  background: var(--v226-primary);
}

/* ===== SECTIONS ===== */
.v226-section {
  padding: 2rem 1.2rem;
}

.v226-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v226-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v226-section-title i {
  font-size: 2rem;
}

/* ===== CATEGORY TABS ===== */
.v226-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v226-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v226-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== GAME GRID ===== */
.v226-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 2rem;
}

.v226-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: var(--v226-card-bg);
  border-radius: var(--v226-radius);
  padding: 6px;
}

.v226-game-item:hover {
  transform: scale(1.04);
}

.v226-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 4px;
}

.v226-game-item span {
  font-size: 1rem;
  color: var(--v226-light);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== INFO CARDS ===== */
.v226-card {
  background: var(--v226-card-bg);
  border-radius: var(--v226-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v226-border);
}

.v226-card h3 {
  font-size: 1.5rem;
  color: var(--v226-primary);
  margin-bottom: 0.8rem;
}

.v226-card p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

/* ===== CTA BUTTONS ===== */
.v226-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--v226-primary), var(--v226-accent2));
  color: var(--v226-dark);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v226-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,191,0,0.4);
}

.v226-cta-center {
  text-align: center;
  padding: 2rem 0;
}

/* ===== FEATURES GRID ===== */
.v226-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.v226-feature-item {
  background: var(--v226-card-bg);
  border-radius: var(--v226-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v226-border);
  transition: border-color 0.3s ease;
}

.v226-feature-item:hover {
  border-color: var(--v226-primary);
}

.v226-feature-item i {
  font-size: 2.4rem;
  color: var(--v226-primary);
  margin-bottom: 8px;
}

.v226-feature-item h4 {
  font-size: 1.3rem;
  color: var(--v226-light);
  margin-bottom: 4px;
}

.v226-feature-item p {
  font-size: 1.1rem;
  color: var(--v226-secondary);
}

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

.v226-testimonial p {
  font-size: 1.3rem;
  color: #ddd;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.v226-testimonial-author {
  font-size: 1.1rem;
  color: var(--v226-primary);
  font-weight: 600;
}

/* ===== WINNER SHOWCASE ===== */
.v226-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v226-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--v226-card-bg);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--v226-border);
}

.v226-winner-name {
  font-size: 1.3rem;
  color: var(--v226-primary);
  font-weight: 600;
}

.v226-winner-game {
  font-size: 1.1rem;
  color: #aaa;
}

.v226-winner-amount {
  font-size: 1.4rem;
  color: var(--v226-text);
  font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.v226-payment-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.v226-payment-item {
  background: var(--v226-card-bg);
  border-radius: 6px;
  padding: 10px 16px;
  border: 1px solid var(--v226-border);
  font-size: 1.2rem;
  color: var(--v226-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== FAQ ===== */
.v226-faq-item {
  background: var(--v226-card-bg);
  border-radius: var(--v226-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v226-border);
}

.v226-faq-item h4 {
  font-size: 1.4rem;
  color: var(--v226-primary);
  margin-bottom: 0.5rem;
}

.v226-faq-item p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.6rem;
}

/* ===== FOOTER ===== */
.v226-footer {
  background: var(--v226-dark);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--v226-accent);
}

.v226-footer-brand {
  font-size: 1.3rem;
  color: #aaa;
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.v226-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.v226-footer-links a {
  background: var(--v226-card-bg);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--v226-light);
  border: 1px solid var(--v226-border);
  transition: all 0.2s ease;
}

.v226-footer-links a:hover {
  color: var(--v226-primary);
  border-color: var(--v226-primary);
}

.v226-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.v226-footer-promo-btn {
  background: linear-gradient(135deg, var(--v226-primary), var(--v226-accent2));
  color: var(--v226-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

.v226-footer-promo-btn:hover {
  transform: scale(1.03);
}

.v226-copyright {
  font-size: 1.1rem;
  color: var(--v226-secondary);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--v226-border);
}

/* ===== BOTTOM NAV ===== */
.v226-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 62px;
  background: var(--v226-dark);
  border-top: 1px solid var(--v226-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.v226-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  color: var(--v226-secondary);
  transition: all 0.25s ease;
  background: none;
  border: none;
  padding: 4px;
}

.v226-bottom-nav-item:hover,
.v226-bottom-nav-item:focus {
  color: var(--v226-primary);
  transform: scale(1.08);
}

.v226-nav-active {
  color: var(--v226-primary);
}

.v226-bottom-nav-item i,
.v226-bottom-nav-item .material-icons-outlined {
  font-size: 22px;
  margin-bottom: 2px;
}

.v226-bottom-nav-item span:not(.material-icons-outlined) {
  font-size: 1rem;
  line-height: 1.2rem;
}

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

/* ===== PROMO TEXT LINK ===== */
.v226-promo-link {
  color: var(--v226-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.v226-promo-link:hover {
  color: var(--v226-accent2);
}

/* ===== INTERNAL LINKS ===== */
.v226-internal-link {
  color: var(--v226-accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.v226-internal-link:hover {
  color: var(--v226-primary);
}

/* ===== ABOUT/FAQ PAGE CONTENT ===== */
.v226-page-content {
  padding: 2rem 1.2rem;
}

.v226-page-content h1 {
  font-size: 2rem;
  color: var(--v226-primary);
  margin-bottom: 1.2rem;
}

.v226-page-content h2 {
  font-size: 1.7rem;
  color: var(--v226-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.v226-page-content h3 {
  font-size: 1.5rem;
  color: var(--v226-accent);
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
}

.v226-page-content p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
}

.v226-page-content ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.v226-page-content li {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.6rem;
  margin-bottom: 0.4rem;
}

/* ===== UTILITY ===== */
.v226-text-center { text-align: center; }
.v226-text-gold { color: var(--v226-primary); }
.v226-text-blue { color: var(--v226-accent); }
.v226-text-orange { color: var(--v226-text); }
.v226-mt-1 { margin-top: 1rem; }
.v226-mb-1 { margin-bottom: 1rem; }
.v226-mb-2 { margin-bottom: 2rem; }
.v226-divider {
  height: 1px;
  background: var(--v226-border);
  margin: 1.5rem 0;
}
