/**
 * Super Ace Casino - Core Stylesheet
 * All classes use w2f35- prefix for namespace isolation
 * Color palette: #34495E (dark bg), #F8F9FA (light text), #FFB3FF (accent)
 */

:root {
  --w2f35-primary: #34495E;
  --w2f35-secondary: #F8F9FA;
  --w2f35-accent: #FFB3FF;
  --w2f35-bg-dark: #1a2535;
  --w2f35-bg-card: #2c3e50;
  --w2f35-text-light: #F8F9FA;
  --w2f35-text-muted: #b0bec5;
  --w2f35-gold: #f1c40f;
  --w2f35-green: #2ecc71;
  --w2f35-red: #e74c3c;
  --w2f35-radius: 8px;
  --w2f35-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --w2f35-header-h: 56px;
  --w2f35-bottom-h: 60px;
}

/* Reset & Base */
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w2f35-bg-dark);
  color: var(--w2f35-text-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w2f35-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.w2f35-container { max-width: 430px; margin: 0 auto; padding: 0 12px; }
.w2f35-wrapper { width: 100%; box-sizing: border-box; }

/* Header */
.w2f35-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--w2f35-header-h);
  background: linear-gradient(135deg, var(--w2f35-primary), var(--w2f35-bg-dark));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.w2f35-header-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--w2f35-text-light); font-size: 1.6rem; font-weight: 700;
}
.w2f35-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w2f35-header-actions { display: flex; align-items: center; gap: 6px; }
.w2f35-header-btn {
  padding: 6px 14px; border-radius: 20px; border: none;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease;
}
.w2f35-header-btn-register {
  background: var(--w2f35-accent); color: var(--w2f35-primary);
}
.w2f35-header-btn-register:hover { background: #ffc4ff; transform: scale(1.05); }
.w2f35-header-btn-login {
  background: transparent; color: var(--w2f35-accent);
  border: 1.5px solid var(--w2f35-accent);
}
.w2f35-header-btn-login:hover { background: rgba(255,179,255,0.15); }
.w2f35-menu-toggle {
  background: none; border: none; color: var(--w2f35-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 4px 8px;
}

/* Mobile Menu */
.w2f35-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.w2f35-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: var(--w2f35-bg-dark); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding-top: 60px; overflow-y: auto;
}
.w2f35-mobile-menu a {
  display: block; padding: 14px 20px; color: var(--w2f35-text-light);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.w2f35-mobile-menu a:hover {
  background: rgba(255,179,255,0.12); text-decoration: none;
}

/* Main Content */
main { padding-top: var(--w2f35-header-h); }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Carousel */
.w2f35-carousel { position: relative; overflow: hidden; border-radius: var(--w2f35-radius); margin: 12px 0; }
.w2f35-carousel-slide { display: none; width: 100%; cursor: pointer; }
.w2f35-carousel-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--w2f35-radius); }
.w2f35-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.w2f35-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(248,249,250,0.5); border: none; cursor: pointer;
  transition: background 0.3s;
}
.w2f35-carousel-dot.w2f35-active { background: var(--w2f35-accent); }

/* Sections */
.w2f35-section { padding: 16px 0; }
.w2f35-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w2f35-accent);
  color: var(--w2f35-text-light);
}
.w2f35-section-text { font-size: 1.3rem; line-height: 1.6; color: var(--w2f35-text-muted); }

/* Game Grid */
.w2f35-game-section { margin-bottom: 20px; }
.w2f35-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.w2f35-game-card {
  text-align: center; cursor: pointer;
  background: var(--w2f35-bg-card); border-radius: var(--w2f35-radius);
  padding: 6px; transition: transform 0.2s, box-shadow 0.2s;
}
.w2f35-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,179,255,0.2);
}
.w2f35-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.w2f35-game-card span {
  display: block; font-size: 1.05rem; color: var(--w2f35-text-light);
  margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Category Title */
.w2f35-cat-title {
  font-size: 1.5rem; font-weight: 600; margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--w2f35-accent);
  color: var(--w2f35-accent);
}

/* Buttons */
.w2f35-btn {
  display: inline-block; padding: 10px 24px; border-radius: 24px;
  font-size: 1.4rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.2s ease; text-align: center;
}
.w2f35-btn-primary {
  background: var(--w2f35-accent); color: var(--w2f35-primary);
}
.w2f35-btn-primary:hover { background: #ffc4ff; transform: scale(1.03); }
.w2f35-btn-outline {
  background: transparent; color: var(--w2f35-accent);
  border: 2px solid var(--w2f35-accent);
}
.w2f35-btn-outline:hover { background: rgba(255,179,255,0.12); }

/* Cards */
.w2f35-card {
  background: var(--w2f35-bg-card); border-radius: var(--w2f35-radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--w2f35-shadow);
}
.w2f35-card-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; color: var(--w2f35-accent); }

/* Footer */
.w2f35-footer {
  background: var(--w2f35-primary); padding: 24px 12px 16px;
  text-align: center;
}
.w2f35-footer-brand { font-size: 1.3rem; color: var(--w2f35-text-muted); margin-bottom: 12px; line-height: 1.6; }
.w2f35-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 16px;
}
.w2f35-footer-link {
  padding: 6px 12px; border-radius: 16px;
  background: rgba(255,179,255,0.15); color: var(--w2f35-accent);
  font-size: 1.1rem; transition: background 0.2s;
}
.w2f35-footer-link:hover { background: rgba(255,179,255,0.3); text-decoration: none; }
.w2f35-footer-copy { font-size: 1.1rem; color: var(--w2f35-text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; }

/* Promotional CTA */
.w2f35-cta-box {
  background: linear-gradient(135deg, var(--w2f35-primary), #1a2535);
  border: 1.5px solid var(--w2f35-accent);
  border-radius: 12px; padding: 16px; text-align: center;
  margin: 16px 0;
}
.w2f35-cta-box p { font-size: 1.3rem; color: var(--w2f35-text-muted); margin-bottom: 10px; }

/* Bottom Navigation */
.w2f35-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--w2f35-bottom-h);
  background: linear-gradient(180deg, var(--w2f35-primary), #141f2e);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,179,255,0.2);
}
.w2f35-bottom-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(--w2f35-text-muted); font-size: 1rem; cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.w2f35-bottom-nav-btn i,
.w2f35-bottom-nav-btn .material-icons,
.w2f35-bottom-nav-btn ion-icon,
.w2f35-bottom-nav-btn .bi {
  font-size: 22px; margin-bottom: 2px;
}
.w2f35-bottom-nav-btn span { font-size: 1rem; }
.w2f35-bottom-nav-btn:hover,
.w2f35-bottom-nav-btn.w2f35-active {
  color: var(--w2f35-accent);
}
.w2f35-bottom-nav-btn:active { transform: scale(0.9); }
@media (min-width: 769px) { .w2f35-bottom-nav { display: none; } }

/* FAQ */
.w2f35-faq-item { margin-bottom: 10px; }
.w2f35-faq-q { font-size: 1.35rem; font-weight: 600; color: var(--w2f35-accent); margin-bottom: 4px; }
.w2f35-faq-a { font-size: 1.25rem; color: var(--w2f35-text-muted); line-height: 1.5; }

/* RTP Table */
.w2f35-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w2f35-rtp-table th {
  background: var(--w2f35-primary); color: var(--w2f35-accent);
  padding: 8px 10px; text-align: left;
}
.w2f35-rtp-table td {
  padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--w2f35-text-muted);
}

/* Testimonial */
.w2f35-testimonial {
  background: var(--w2f35-bg-card); border-radius: var(--w2f35-radius);
  padding: 12px 14px; margin-bottom: 10px;
  border-left: 3px solid var(--w2f35-accent);
}
.w2f35-testimonial-name { font-weight: 600; color: var(--w2f35-accent); font-size: 1.2rem; }
.w2f35-testimonial-text { font-size: 1.2rem; color: var(--w2f35-text-muted); margin-top: 4px; }

/* Winners */
.w2f35-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w2f35-winner-name { font-size: 1.2rem; color: var(--w2f35-text-light); }
.w2f35-winner-game { font-size: 1.1rem; color: var(--w2f35-text-muted); }
.w2f35-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--w2f35-green); }

/* Promotional link in content */
.w2f35-promo-link {
  color: var(--w2f35-accent); font-weight: 600; cursor: pointer;
  transition: color 0.2s;
}
.w2f35-promo-link:hover { color: #ffc4ff; text-decoration: underline; }

/* Desktop */
@media (min-width: 769px) {
  .w2f35-container { max-width: 480px; }
  .w2f35-game-grid { grid-template-columns: repeat(5, 1fr); }
}
