/**
 * Free Bonus Casino - Core Stylesheet
 * All classes use s8af- prefix for namespace isolation
 * Color palette: #6C757D (gray) | #1C2833 (dark) | #E65100 (orange accent)
 * Mobile-first design, max-width 430px primary target
 */

/* CSS Variables */
:root {
  --s8af-primary: #E65100;
  --s8af-bg: #1C2833;
  --s8af-bg-light: #2C3E50;
  --s8af-bg-card: #1a2530;
  --s8af-text: #FFFFFF;
  --s8af-text-muted: #6C757D;
  --s8af-gray: #6C757D;
  --s8af-accent: #E65100;
  --s8af-accent-hover: #FF6D00;
  --s8af-border: #34495E;
  --s8af-success: #27AE60;
  --s8af-warning: #F39C12;
  --s8af-radius: 8px;
  --s8af-radius-lg: 12px;
  --s8af-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s8af-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  --s8af-transition: all 0.3s ease;
}

/* Base Reset */
*, *::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, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--s8af-bg);
  color: var(--s8af-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--s8af-accent); text-decoration: none; transition: var(--s8af-transition); }
a:hover { color: var(--s8af-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container & Wrapper */
.s8af-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.s8af-wrapper { width: 100%; position: relative; }

/* Header */
.s8af-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--s8af-bg); border-bottom: 1px solid var(--s8af-border);
  height: 56px; display: flex; align-items: center;
  padding: 0 1.2rem; transition: var(--s8af-transition);
}
.s8af-header-scrolled { box-shadow: var(--s8af-shadow-lg); }
.s8af-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 430px; margin: 0 auto;
}
.s8af-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.s8af-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.s8af-logo-area span { font-size: 1.5rem; font-weight: 700; color: var(--s8af-text); white-space: nowrap; }
.s8af-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s8af-btn-register {
  background: var(--s8af-accent); color: #fff; border: none; padding: 0.6rem 1.4rem;
  border-radius: var(--s8af-radius); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--s8af-transition); white-space: nowrap;
}
.s8af-btn-register:hover { background: var(--s8af-accent-hover); transform: scale(1.05); }
.s8af-btn-login {
  background: transparent; color: var(--s8af-accent); border: 1px solid var(--s8af-accent);
  padding: 0.6rem 1.2rem; border-radius: var(--s8af-radius); font-size: 1.2rem;
  font-weight: 600; cursor: pointer; transition: var(--s8af-transition); white-space: nowrap;
}
.s8af-btn-login:hover { background: rgba(230,81,0,0.1); }
.s8af-menu-toggle {
  background: none; border: none; color: var(--s8af-text); font-size: 2.2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.s8af-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--s8af-bg-light); z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.6rem; overflow-y: auto;
}
.s8af-menu-active { right: 0; }
.s8af-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.s8af-overlay-active { display: block; }
.s8af-menu-close {
  background: none; border: none; color: var(--s8af-text); font-size: 2.4rem;
  cursor: pointer; position: absolute; top: 1.2rem; right: 1.2rem;
}
.s8af-menu-nav { margin-top: 3rem; }
.s8af-menu-nav a {
  display: block; padding: 1rem 0; color: var(--s8af-text); font-size: 1.4rem;
  border-bottom: 1px solid var(--s8af-border); transition: var(--s8af-transition);
}
.s8af-menu-nav a:hover { color: var(--s8af-accent); padding-left: 0.8rem; }

/* Carousel */
.s8af-carousel { position: relative; overflow: hidden; border-radius: var(--s8af-radius-lg); margin-top: 0.8rem; }
.s8af-carousel-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.s8af-slide-active { display: block; animation: s8af-fadeIn 0.5s ease; }
@keyframes s8af-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.s8af-carousel-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; border-radius: var(--s8af-radius-lg); }
.s8af-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.s8af-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: var(--s8af-transition);
}
.s8af-dot-active { background: var(--s8af-accent); width: 20px; border-radius: 4px; }

/* Main Content */
main { padding-top: 56px; padding-bottom: 2rem; }
.s8af-section { padding: 2rem 0; }
.s8af-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--s8af-accent);
  color: var(--s8af-text);
}

/* Game Grid */
.s8af-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.s8af-game-item {
  text-align: center; cursor: pointer; transition: var(--s8af-transition);
  border-radius: var(--s8af-radius); padding: 0.4rem;
}
.s8af-game-item:hover { transform: translateY(-2px); background: rgba(230,81,0,0.08); }
.s8af-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s8af-radius); border: 2px solid var(--s8af-border);
  transition: var(--s8af-transition);
}
.s8af-game-item:hover img { border-color: var(--s8af-accent); }
.s8af-game-item span {
  display: block; font-size: 1.1rem; color: var(--s8af-text-muted);
  margin-top: 0.3rem; line-height: 1.3rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Category Tabs */
.s8af-cat-title {
  font-size: 1.5rem; font-weight: 600; color: var(--s8af-accent);
  margin: 1.6rem 0 0.8rem; display: flex; align-items: center; gap: 0.6rem;
}
.s8af-cat-title i, .s8af-cat-title .material-symbols-outlined { font-size: 2rem; }

/* Content Modules */
.s8af-card {
  background: var(--s8af-bg-card); border-radius: var(--s8af-radius-lg);
  padding: 1.6rem; margin-bottom: 1.2rem; border: 1px solid var(--s8af-border);
}
.s8af-card h3 { font-size: 1.5rem; color: var(--s8af-accent); margin-bottom: 0.8rem; }
.s8af-card p { font-size: 1.3rem; color: var(--s8af-text-muted); line-height: 1.7rem; }
.s8af-promo-btn {
  display: inline-block; background: var(--s8af-accent); color: #fff;
  padding: 1rem 2.4rem; border-radius: var(--s8af-radius); font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none; text-align: center;
  transition: var(--s8af-transition); margin: 0.8rem 0;
}
.s8af-promo-btn:hover { background: var(--s8af-accent-hover); transform: scale(1.03); }
.s8af-text-link { color: var(--s8af-accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.s8af-text-link:hover { color: var(--s8af-accent-hover); }

/* Features Grid */
.s8af-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.s8af-feature-item {
  background: var(--s8af-bg-light); padding: 1.2rem; border-radius: var(--s8af-radius);
  text-align: center; border: 1px solid var(--s8af-border);
}
.s8af-feature-item i { font-size: 2.4rem; color: var(--s8af-accent); margin-bottom: 0.6rem; display: block; }
.s8af-feature-item h4 { font-size: 1.3rem; color: var(--s8af-text); margin-bottom: 0.4rem; }
.s8af-feature-item p { font-size: 1.1rem; color: var(--s8af-text-muted); }

/* Payment Methods */
.s8af-payment-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.s8af-payment-item {
  background: var(--s8af-bg-light); padding: 0.8rem 1.2rem; border-radius: var(--s8af-radius);
  font-size: 1.2rem; color: var(--s8af-text); border: 1px solid var(--s8af-border);
}

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

/* Testimonials */
.s8af-testimonial {
  background: var(--s8af-bg-light); padding: 1.2rem; border-radius: var(--s8af-radius);
  margin-bottom: 0.8rem; border-left: 3px solid var(--s8af-accent);
}
.s8af-testimonial p { font-style: italic; font-size: 1.2rem; color: var(--s8af-text-muted); }
.s8af-testimonial-author { font-size: 1.1rem; color: var(--s8af-accent); margin-top: 0.4rem; font-weight: 600; }

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

/* Footer */
.s8af-footer {
  background: var(--s8af-bg-light); padding: 2rem 0 1.2rem;
  border-top: 1px solid var(--s8af-border); margin-top: 2rem;
}
.s8af-footer-desc { font-size: 1.2rem; color: var(--s8af-text-muted); line-height: 1.6rem; margin-bottom: 1.2rem; }
.s8af-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.s8af-footer-links a {
  background: var(--s8af-accent); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--s8af-radius); font-size: 1.1rem; font-weight: 600;
}
.s8af-footer-links a:hover { background: var(--s8af-accent-hover); }
.s8af-footer-site-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 1.2rem; }
.s8af-footer-site-links a { color: var(--s8af-text-muted); font-size: 1.2rem; }
.s8af-footer-site-links a:hover { color: var(--s8af-accent); }
.s8af-footer-partners { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.2rem; }
.s8af-footer-partners img { height: 28px; opacity: 0.7; transition: var(--s8af-transition); }
.s8af-footer-partners img:hover { opacity: 1; }
.s8af-footer-copy { text-align: center; font-size: 1.1rem; color: var(--s8af-text-muted); border-top: 1px solid var(--s8af-border); padding-top: 1rem; }

/* Bottom Navigation (Mobile) */
.s8af-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--s8af-bg); border-top: 1px solid var(--s8af-border);
  height: 60px; display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.s8af-bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; cursor: pointer; transition: var(--s8af-transition);
  background: none; border: none; color: var(--s8af-text-muted); padding: 0.4rem;
  text-decoration: none; position: relative;
}
.s8af-bottom-nav-item i,
.s8af-bottom-nav-item .material-symbols-outlined,
.s8af-bottom-nav-item ion-icon { font-size: 22px; margin-bottom: 2px; transition: var(--s8af-transition); }
.s8af-bottom-nav-item span { font-size: 1rem; line-height: 1.2rem; }
.s8af-bottom-nav-item:hover,
.s8af-bottom-nav-item.s8af-nav-active {
  color: var(--s8af-accent);
}
.s8af-bottom-nav-item:hover i,
.s8af-bottom-nav-item:hover .material-symbols-outlined,
.s8af-bottom-nav-item:hover ion-icon { transform: scale(1.15); }
.s8af-bottom-nav-item.s8af-nav-active::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--s8af-accent); border-radius: 0 0 2px 2px;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
  .s8af-footer { padding-bottom: 5rem; }
}

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

/* Desktop responsive */
@media (min-width: 431px) and (max-width: 768px) {
  .s8af-container { max-width: 430px; }
  .s8af-game-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 769px) {
  .s8af-container { max-width: 600px; }
  .s8af-game-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Utility classes */
.s8af-text-center { text-align: center; }
.s8af-mt-1 { margin-top: 0.8rem; }
.s8af-mt-2 { margin-top: 1.6rem; }
.s8af-mb-1 { margin-bottom: 0.8rem; }
.s8af-mb-2 { margin-bottom: 1.6rem; }
.s8af-hidden { display: none; }
.s8af-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
