/*
 * design-04b1.css - Core Stylesheet for Bingo Casino Slots
 * All classes use w04b1- prefix for namespace isolation
 * Color palette: #141414 (bg) | #7B68EE (accent)
 */

:root {
  --w04b1-primary: #7B68EE;
  --w04b1-primary-dark: #6354d4;
  --w04b1-primary-light: #9d8ff5;
  --w04b1-bg: #141414;
  --w04b1-bg-card: #1e1e2e;
  --w04b1-bg-light: #252535;
  --w04b1-text: #f0f0f0;
  --w04b1-text-muted: #a0a0b8;
  --w04b1-accent-gold: #ffd700;
  --w04b1-accent-green: #4caf50;
  --w04b1-accent-red: #ff4757;
  --w04b1-radius: 8px;
  --w04b1-radius-lg: 16px;
  --w04b1-shadow: 0 4px 20px rgba(123,104,238,0.15);
  --w04b1-transition: all 0.3s ease;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--w04b1-bg);
  color: var(--w04b1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Header === */
.w04b1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
  border-bottom: 1px solid rgba(123,104,238,0.2);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.w04b1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.w04b1-logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.w04b1-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w04b1-logo-area span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w04b1-primary);
  white-space: nowrap;
}

.w04b1-header-btns {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.w04b1-btn-register,
.w04b1-btn-login {
  padding: 0.5rem 1rem;
  border-radius: var(--w04b1-radius);
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--w04b1-transition);
  white-space: nowrap;
}

.w04b1-btn-register {
  background: linear-gradient(135deg, var(--w04b1-primary), var(--w04b1-primary-dark));
  color: #fff;
}

.w04b1-btn-register:hover {
  background: linear-gradient(135deg, var(--w04b1-primary-light), var(--w04b1-primary));
  transform: scale(1.05);
}

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

.w04b1-btn-login:hover {
  background: rgba(123,104,238,0.1);
}

.w04b1-menu-toggle {
  background: none;
  border: none;
  color: var(--w04b1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

/* === Mobile Menu === */
.w04b1-mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background: #1a1a2e;
  border-top: 1px solid rgba(123,104,238,0.15);
}

.w04b1-mobile-menu.w04b1-menu-active {
  max-height: 400px;
  opacity: 1;
}

.w04b1-menu-list {
  list-style: none;
  padding: 0.5rem 0;
}

.w04b1-menu-list li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w04b1-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--w04b1-transition);
  border-bottom: 1px solid rgba(123,104,238,0.08);
}

.w04b1-menu-list li a:hover {
  color: var(--w04b1-primary);
  background: rgba(123,104,238,0.08);
  padding-left: 2rem;
}

/* === Main Content === */
main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

/* === Carousel === */
.w04b1-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w04b1-radius-lg) var(--w04b1-radius-lg);
}

.w04b1-slide {
  display: none;
  cursor: pointer;
}

.w04b1-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.w04b1-slide:first-child {
  display: block;
}

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

.w04b1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--w04b1-transition);
}

.w04b1-dot-active {
  background: var(--w04b1-primary);
  width: 20px;
  border-radius: 4px;
}

/* === Sections === */
.w04b1-section {
  padding: 2rem 1.2rem;
}

.w04b1-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w04b1-text);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--w04b1-primary);
}

.w04b1-section-title span {
  color: var(--w04b1-primary);
}

/* === Game Grid === */
.w04b1-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w04b1-primary-light);
  margin: 1.5rem 0 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(123,104,238,0.08);
  border-radius: var(--w04b1-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w04b1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.w04b1-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w04b1-transition);
  border-radius: var(--w04b1-radius);
  padding: 0.4rem;
}

.w04b1-game-item:hover {
  background: rgba(123,104,238,0.1);
  transform: translateY(-2px);
}

.w04b1-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w04b1-radius);
  object-fit: cover;
}

.w04b1-game-item p {
  font-size: 1rem;
  color: var(--w04b1-text-muted);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Promo CTA === */
.w04b1-cta-box {
  background: linear-gradient(135deg, rgba(123,104,238,0.15), rgba(123,104,238,0.05));
  border: 1px solid rgba(123,104,238,0.3);
  border-radius: var(--w04b1-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.w04b1-cta-box h2 {
  font-size: 1.8rem;
  color: var(--w04b1-primary);
  margin-bottom: 0.8rem;
}

.w04b1-cta-box p {
  color: var(--w04b1-text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.w04b1-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--w04b1-primary), var(--w04b1-primary-dark));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--w04b1-transition);
  text-decoration: none;
}

.w04b1-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 25px rgba(123,104,238,0.4);
}

/* === Info Cards === */
.w04b1-card {
  background: var(--w04b1-bg-card);
  border-radius: var(--w04b1-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(123,104,238,0.1);
}

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

.w04b1-card p,
.w04b1-card li {
  color: var(--w04b1-text-muted);
  font-size: 1.3rem;
  line-height: 1.6rem;
}

.w04b1-card ul {
  padding-left: 1.5rem;
}

.w04b1-card li {
  margin-bottom: 0.4rem;
}

/* === Winners Table === */
.w04b1-winners {
  width: 100%;
  border-collapse: collapse;
}

.w04b1-winners th {
  background: rgba(123,104,238,0.15);
  color: var(--w04b1-primary);
  padding: 0.6rem;
  font-size: 1.1rem;
  text-align: left;
}

.w04b1-winners td {
  padding: 0.6rem;
  font-size: 1.1rem;
  color: var(--w04b1-text-muted);
  border-bottom: 1px solid rgba(123,104,238,0.08);
}

.w04b1-winners .w04b1-amount {
  color: var(--w04b1-accent-gold);
  font-weight: 700;
}

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

.w04b1-testimonial p {
  font-size: 1.2rem;
  color: var(--w04b1-text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.w04b1-testimonial strong {
  color: var(--w04b1-primary);
  font-style: normal;
}

/* === Payment Methods === */
.w04b1-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.w04b1-payment-item {
  background: var(--w04b1-bg-light);
  padding: 0.8rem 1.2rem;
  border-radius: var(--w04b1-radius);
  font-size: 1.2rem;
  color: var(--w04b1-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Footer === */
.w04b1-footer {
  background: linear-gradient(180deg, var(--w04b1-bg-card) 0%, #0d0d1a 100%);
  padding: 2rem 1.2rem;
  text-align: center;
}

.w04b1-footer p {
  color: var(--w04b1-text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.6rem;
}

.w04b1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.w04b1-footer-links a {
  color: var(--w04b1-primary-light);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(123,104,238,0.2);
  border-radius: 20px;
  transition: var(--w04b1-transition);
}

.w04b1-footer-links a:hover {
  background: rgba(123,104,238,0.15);
  color: #fff;
}

.w04b1-copyright {
  color: #666;
  font-size: 1rem;
  margin-top: 1rem;
}

/* === Bottom Navigation === */
.w04b1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #1e1e2e, #141428);
  border-top: 1px solid rgba(123,104,238,0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 0.3rem;
}

.w04b1-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--w04b1-text-muted);
  cursor: pointer;
  transition: var(--w04b1-transition);
  padding: 0.3rem;
  border-radius: var(--w04b1-radius);
}

.w04b1-bnav-btn:hover,
.w04b1-bnav-btn:focus {
  color: var(--w04b1-primary);
}

.w04b1-bnav-btn.w04b1-bnav-active {
  color: var(--w04b1-primary);
}

.w04b1-bnav-btn i,
.w04b1-bnav-btn span.material-symbols-outlined,
.w04b1-bnav-btn ion-icon {
  font-size: 22px;
}

.w04b1-bnav-btn span.material-symbols-outlined {
  font-size: 24px;
}

.w04b1-bnav-btn ion-icon {
  font-size: 24px;
}

.w04b1-bnav-label {
  font-size: 1rem;
  margin-top: 0.1rem;
  line-height: 1.2;
}

/* === Text Links === */
.w04b1-text-link {
  color: var(--w04b1-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--w04b1-transition);
}

.w04b1-text-link:hover {
  color: var(--w04b1-primary-light);
  text-decoration: underline;
}

.w04b1-promo-link {
  color: var(--w04b1-accent-gold);
  font-weight: 700;
  cursor: pointer;
  transition: var(--w04b1-transition);
}

.w04b1-promo-link:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .w04b1-bottom-nav {
    display: none;
  }
}

/* === Utility === */
.w04b1-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w04b1-wrapper {
  padding: 1.5rem 1.2rem;
}

.w04b1-grid {
  display: grid;
  gap: 0.8rem;
}

.w04b1-mb-1 { margin-bottom: 0.5rem; }
.w04b1-mb-2 { margin-bottom: 1rem; }
.w04b1-mb-3 { margin-bottom: 1.5rem; }
.w04b1-text-center { text-align: center; }
.w04b1-text-sm { font-size: 1.2rem; }
