/**
 * layout.css - Main stylesheet for hbajer.click
 * All classes prefixed with s396- to avoid conflicts
 */

/* CSS Variables */
:root {
  --s396-primary: #E91E63;
  --s396-primary-dark: #C2185B;
  --s396-bg: #2C2C2C;
  --s396-bg-dark: #1A1A1A;
  --s396-bg-card: #333333;
  --s396-text: #FFFFFF;
  --s396-text-muted: #A9A9A9;
  --s396-accent: #FFD700;
  --s396-header-bg: #2C3E50;
  --s396-border: #444444;
  --s396-success: #4CAF50;
  --s396-radius: 8px;
  --s396-shadow: 0 2px 8px 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--s396-bg);
  color: var(--s396-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s396-primary); text-decoration: none; }
a:hover { color: var(--s396-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.s396-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s396-header-bg);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: var(--s396-shadow);
}
.s396-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s396-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.s396-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s396-text);
  letter-spacing: 0.5px;
}
.s396-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s396-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--s396-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}
.s396-btn-register {
  background: var(--s396-primary);
  color: #fff;
}
.s396-btn-register:hover { background: var(--s396-primary-dark); }
.s396-btn-login {
  background: transparent;
  color: var(--s396-text);
  border: 1px solid var(--s396-text-muted);
}
.s396-btn-login:hover {
  border-color: var(--s396-primary);
  color: var(--s396-primary);
}
.s396-menu-btn {
  background: none;
  border: none;
  color: var(--s396-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.s396-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 ease;
}
.s396-overlay-active {
  opacity: 1;
  visibility: visible;
}
.s396-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--s396-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.s396-menu-active {
  right: 0;
}
.s396-menu-close {
  background: none;
  border: none;
  color: var(--s396-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.s396-menu-list {
  list-style: none;
  margin-top: 2rem;
}
.s396-menu-list li {
  border-bottom: 1px solid var(--s396-border);
}
.s396-menu-list a {
  display: block;
  padding: 1.2rem 0;
  color: var(--s396-text);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.s396-menu-list a:hover {
  color: var(--s396-primary);
}

/* Main Content */
.s396-main {
  margin-top: 52px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.s396-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.s396-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.s396-slide-active { display: block; }
.s396-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.s396-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  background: var(--s396-bg-dark);
}
.s396-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s396-text-muted);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.s396-dot-active {
  background: var(--s396-primary);
  width: 20px;
  border-radius: 4px;
}

/* Section Styles */
.s396-section {
  padding: 1.5rem 1rem;
}
.s396-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--s396-text);
  border-left: 3px solid var(--s396-primary);
  padding-left: 0.8rem;
}
.s396-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.2rem 0 0.8rem;
  color: var(--s396-accent);
}

/* Game Grid */
.s396-game-category {
  margin-bottom: 1.5rem;
}
.s396-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s396-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s396-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.s396-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.s396-game-item:hover { transform: scale(1.05); }
.s396-game-item:active { transform: scale(0.95); }
.s396-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--s396-radius);
  object-fit: cover;
  border: 2px solid var(--s396-border);
}
.s396-game-name {
  font-size: 1rem;
  color: var(--s396-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.s396-card {
  background: var(--s396-bg-card);
  border-radius: var(--s396-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--s396-shadow);
}
.s396-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--s396-accent);
}

/* Promo CTA */
.s396-cta {
  background: linear-gradient(135deg, var(--s396-primary), var(--s396-primary-dark));
  border-radius: var(--s396-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  margin: 1rem 0;
}
.s396-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.s396-cta-text {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.s396-cta .s396-btn {
  background: #fff;
  color: var(--s396-primary);
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 700;
}

/* Feature List */
.s396-feature-list {
  list-style: none;
}
.s396-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--s396-border);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.6rem;
}
.s396-feature-icon {
  color: var(--s396-primary);
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Winner Display */
.s396-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.s396-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--s396-bg-dark);
  border-radius: var(--s396-radius);
  font-size: 1.2rem;
}
.s396-winner-name {
  color: var(--s396-accent);
  font-weight: 600;
}
.s396-winner-amount {
  color: var(--s396-success);
  font-weight: 700;
}

/* Footer */
.s396-footer {
  background: var(--s396-bg-dark);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--s396-border);
}
.s396-footer-brand {
  font-size: 1.3rem;
  color: var(--s396-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8rem;
}
.s396-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.s396-footer-link {
  padding: 0.4rem 0.8rem;
  background: var(--s396-bg-card);
  border-radius: 4px;
  font-size: 1.1rem;
  color: var(--s396-text-muted);
  transition: all 0.2s;
}
.s396-footer-link:hover {
  color: var(--s396-primary);
  background: var(--s396-bg);
}
.s396-footer-copy {
  font-size: 1.1rem;
  color: var(--s396-text-muted);
  margin-top: 1rem;
}

/* Bottom Nav */
.s396-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s396-header-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 58px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
  border-top: 1px solid var(--s396-border);
}
.s396-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--s396-text-muted);
  cursor: pointer;
  min-width: 60px;
  min-height: 50px;
  transition: all 0.2s;
  padding: 0.3rem;
}
.s396-nav-btn:hover,
.s396-nav-btn:focus {
  color: var(--s396-primary);
}
.s396-nav-btn:active {
  transform: scale(0.9);
}
.s396-nav-btn .s396-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}
.s396-nav-btn .s396-nav-label {
  font-size: 1rem;
  font-weight: 500;
}
.s396-nav-active {
  color: var(--s396-primary);
}
.s396-nav-active .s396-nav-icon {
  filter: drop-shadow(0 0 4px var(--s396-primary));
}

/* Payment Icons */
.s396-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.s396-payment-item {
  background: var(--s396-bg-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--s396-radius);
  font-size: 1.2rem;
  color: var(--s396-text-muted);
}

/* Testimonial */
.s396-testimonial {
  background: var(--s396-bg-dark);
  border-radius: var(--s396-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--s396-primary);
}
.s396-testimonial-user {
  font-weight: 600;
  color: var(--s396-accent);
  font-size: 1.2rem;
}
.s396-testimonial-text {
  font-size: 1.2rem;
  color: var(--s396-text-muted);
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* Promo link text */
.s396-promo-text {
  color: var(--s396-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.s396-promo-text:hover {
  color: var(--s396-accent);
}

/* FAQ */
.s396-faq-item {
  margin-bottom: 0.8rem;
}
.s396-faq-q {
  font-weight: 600;
  color: var(--s396-accent);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.s396-faq-a {
  color: var(--s396-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  padding-left: 1rem;
}

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