/**
 * 666casino - Main Stylesheet
 * All classes use s5f7- prefix for namespace isolation
 * Color palette: #F5F5F5 | #CD853F | #FF8C00 | #1E1E1E
 * Mobile-first design with max-width 430px
 */

/* CSS Variables */
:root {
  --s5f7-bg: #1E1E1E;
  --s5f7-bg-card: #2A2A2A;
  --s5f7-bg-dark: #161616;
  --s5f7-text: #F5F5F5;
  --s5f7-text-muted: #B0B0B0;
  --s5f7-primary: #FF8C00;
  --s5f7-secondary: #CD853F;
  --s5f7-accent: #FFB347;
  --s5f7-border: #3A3A3A;
  --s5f7-gold: #DAA520;
  --s5f7-shadow: rgba(255, 140, 0, 0.15);
  --s5f7-radius: 8px;
  --s5f7-radius-lg: 14px;
  --s5f7-header-h: 56px;
  --s5f7-bottom-nav-h: 60px;
}

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

/* Container */
.s5f7-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s5f7-wrapper { padding-top: var(--s5f7-header-h); }

/* Header */
.s5f7-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--s5f7-header-h);
  background: var(--s5f7-bg-dark);
  border-bottom: 1px solid var(--s5f7-border);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.s5f7-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--s5f7-text);
}
.s5f7-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.s5f7-header-logo span { font-size: 1.6rem; font-weight: 700; color: var(--s5f7-primary); }
.s5f7-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s5f7-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border: none; border-radius: var(--s5f7-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: all 0.25s ease; min-height: 36px;
}
.s5f7-btn-register {
  background: var(--s5f7-primary); color: var(--s5f7-bg-dark);
}
.s5f7-btn-register:hover { background: var(--s5f7-accent); transform: scale(1.04); }
.s5f7-btn-login {
  background: transparent; color: var(--s5f7-primary);
  border: 1px solid var(--s5f7-primary);
}
.s5f7-btn-login:hover { background: rgba(255,140,0,0.1); }
.s5f7-menu-toggle {
  background: none; border: none; color: var(--s5f7-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.s5f7-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;
}
.s5f7-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Side Menu */
.s5f7-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: var(--s5f7-bg-dark); z-index: 9999;
  transition: right 0.35s ease; padding: 2rem 1.5rem;
  border-left: 1px solid var(--s5f7-border);
}
.s5f7-menu-active { right: 0; }
.s5f7-mobile-menu .s5f7-menu-close {
  background: none; border: none; color: var(--s5f7-text);
  font-size: 2rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.s5f7-mobile-menu ul { margin-top: 3rem; }
.s5f7-mobile-menu li { border-bottom: 1px solid var(--s5f7-border); }
.s5f7-mobile-menu a {
  display: block; padding: 1.2rem 0; color: var(--s5f7-text);
  font-size: 1.4rem; transition: color 0.2s;
}
.s5f7-mobile-menu a:hover { color: var(--s5f7-primary); }

/* Carousel */
.s5f7-carousel {
  position: relative; overflow: hidden; border-radius: var(--s5f7-radius-lg);
  margin: 1.2rem 0;
}
.s5f7-carousel-track { display: flex; transition: transform 0.5s ease; }
.s5f7-carousel-slide {
  min-width: 100%; opacity: 0; display: none;
  transition: opacity 0.5s ease;
}
.s5f7-slide-active { opacity: 1; display: block; }
.s5f7-carousel-slide img {
  width: 100%; height: auto; border-radius: var(--s5f7-radius-lg);
  cursor: pointer;
}
.s5f7-carousel-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 0;
}
.s5f7-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--s5f7-border); cursor: pointer;
  transition: background 0.3s;
}
.s5f7-dot-active { background: var(--s5f7-primary); }
.s5f7-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.s5f7-carousel-arrow:hover { background: var(--s5f7-primary); }
.s5f7-arrow-prev { left: 8px; }
.s5f7-arrow-next { right: 8px; }

/* Section Titles */
.s5f7-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 2rem 0 1rem;
  color: var(--s5f7-text); padding-left: 0.8rem;
  border-left: 3px solid var(--s5f7-primary);
}
.s5f7-section-title span { color: var(--s5f7-primary); }

/* Category Tabs */
.s5f7-cat-label {
  font-size: 1.5rem; font-weight: 600; margin: 1.6rem 0 0.8rem;
  color: var(--s5f7-secondary); display: flex; align-items: center; gap: 0.5rem;
}

/* Game Grid */
.s5f7-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.s5f7-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: var(--s5f7-radius);
  padding: 0.4rem;
}
.s5f7-game-item:hover { transform: scale(1.06); }
.s5f7-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--s5f7-radius); border: 1px solid var(--s5f7-border);
}
.s5f7-game-name {
  font-size: 1.1rem; margin-top: 0.3rem; color: var(--s5f7-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.s5f7-card {
  background: var(--s5f7-bg-card); border-radius: var(--s5f7-radius-lg);
  padding: 1.4rem; margin: 1rem 0; border: 1px solid var(--s5f7-border);
}
.s5f7-card h3 {
  font-size: 1.5rem; color: var(--s5f7-primary); margin-bottom: 0.6rem;
}
.s5f7-card p { color: var(--s5f7-text-muted); line-height: 1.7rem; }

/* Promo CTA */
.s5f7-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--s5f7-primary), var(--s5f7-secondary));
  color: var(--s5f7-bg-dark); font-weight: 700; font-size: 1.5rem;
  padding: 1.2rem; border-radius: var(--s5f7-radius-lg);
  margin: 1.5rem 0; cursor: pointer; transition: all 0.3s ease;
}
.s5f7-cta:hover { transform: scale(1.02); box-shadow: 0 4px 20px var(--s5f7-shadow); }

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

/* Content blocks */
.s5f7-content-block { margin: 1.5rem 0; line-height: 1.7rem; }
.s5f7-content-block h2 {
  font-size: 1.7rem; color: var(--s5f7-primary); margin-bottom: 0.8rem;
}
.s5f7-content-block h3 {
  font-size: 1.4rem; color: var(--s5f7-secondary); margin: 1rem 0 0.5rem;
}
.s5f7-content-block p {
  color: var(--s5f7-text-muted); margin-bottom: 0.8rem;
}

/* Testimonial */
.s5f7-testimonial {
  background: var(--s5f7-bg-card); border-radius: var(--s5f7-radius);
  padding: 1rem 1.2rem; margin: 0.8rem 0;
  border-left: 3px solid var(--s5f7-gold);
}
.s5f7-testimonial-name {
  font-weight: 700; color: var(--s5f7-primary); font-size: 1.2rem;
}
.s5f7-testimonial-text { color: var(--s5f7-text-muted); font-size: 1.2rem; margin-top: 0.4rem; }

/* Winners list */
.s5f7-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid var(--s5f7-border);
  font-size: 1.2rem;
}
.s5f7-winner-name { color: var(--s5f7-text); }
.s5f7-winner-game { color: var(--s5f7-text-muted); }
.s5f7-winner-amount { color: var(--s5f7-primary); font-weight: 700; }

/* Payment icons row */
.s5f7-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin: 1rem 0;
}
.s5f7-payment-item {
  background: var(--s5f7-bg-card); border-radius: var(--s5f7-radius);
  padding: 0.6rem 1rem; font-size: 1.2rem; color: var(--s5f7-text-muted);
  border: 1px solid var(--s5f7-border);
}

/* RTP table */
.s5f7-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.s5f7-rtp-table th {
  text-align: left; padding: 0.6rem; background: var(--s5f7-bg-dark);
  color: var(--s5f7-primary); border-bottom: 2px solid var(--s5f7-primary);
}
.s5f7-rtp-table td {
  padding: 0.6rem; border-bottom: 1px solid var(--s5f7-border);
  color: var(--s5f7-text-muted);
}

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

/* Bottom Navigation */
.s5f7-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--s5f7-bottom-nav-h);
  background: var(--s5f7-bg-dark);
  border-top: 1px solid var(--s5f7-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.s5f7-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; min-height: 54px; background: none; border: none;
  color: var(--s5f7-text-muted); cursor: pointer; transition: all 0.25s ease;
  padding: 0.3rem; border-radius: var(--s5f7-radius);
}
.s5f7-bottom-nav-btn:hover { color: var(--s5f7-primary); transform: scale(1.08); }
.s5f7-bottom-nav-btn .s5f7-nav-icon { font-size: 2.2rem; line-height: 1; }
.s5f7-bottom-nav-btn .s5f7-nav-label { font-size: 1rem; margin-top: 0.2rem; }
.s5f7-nav-active { color: var(--s5f7-primary) !important; }
.s5f7-nav-active .s5f7-nav-label { font-weight: 700; }

/* Mobile bottom padding */
@media (max-width: 768px) {
  .s5f7-wrapper { padding-bottom: 76px; }
}

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

/* Desktop adjustments */
@media (min-width: 769px) {
  .s5f7-container { max-width: 430px; }
}

/* Animations */
@keyframes s5f7-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.s5f7-animate-in { animation: s5f7-fadeIn 0.4s ease forwards; }

/* Highlight badge */
.s5f7-badge {
  display: inline-block; background: var(--s5f7-primary);
  color: var(--s5f7-bg-dark); font-size: 1rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 4px;
}

/* FAQ */
.s5f7-faq-item { margin: 0.8rem 0; }
.s5f7-faq-q {
  font-weight: 700; color: var(--s5f7-primary);
  font-size: 1.3rem; margin-bottom: 0.3rem;
}
.s5f7-faq-a { color: var(--s5f7-text-muted); font-size: 1.2rem; padding-left: 1rem; }

/* Feature list */
.s5f7-feature-list { padding: 0; }
.s5f7-feature-list li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--s5f7-border);
  color: var(--s5f7-text-muted); font-size: 1.3rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.s5f7-feature-list li i { color: var(--s5f7-primary); font-size: 1.4rem; }
