/**
 * BigWin Casino - Layout Stylesheet
 * All classes use w909e- prefix for namespace isolation
 * Color palette: #FF4500 | #FFD700 | #1C1C1C | #FF6347 | #2F4F4F
 * Mobile-first design, max-width: 430px
 */

/* CSS Custom Properties */
:root {
  --w909e-primary: #FF4500;
  --w909e-secondary: #FFD700;
  --w909e-bg: #1C1C1C;
  --w909e-bg-light: #2A2A2A;
  --w909e-bg-card: #333333;
  --w909e-accent: #FF6347;
  --w909e-text: #F5F5F5;
  --w909e-text-muted: #AAAAAA;
  --w909e-border: #444444;
  --w909e-dark-green: #2F4F4F;
  --w909e-font-size: 62.5%;
  --w909e-radius: 0.8rem;
  --w909e-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --w909e-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--w909e-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w909e-bg);
  color: var(--w909e-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(--w909e-secondary);
  text-decoration: none;
  transition: var(--w909e-transition);
}

a:hover {
  color: var(--w909e-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.w909e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.w909e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #1C1C1C 0%, #2F4F4F 100%);
  border-bottom: 2px solid var(--w909e-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w909e-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.w909e-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.w909e-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w909e-secondary);
  letter-spacing: 0.5px;
}

.w909e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w909e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--w909e-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--w909e-transition);
  min-height: 36px;
  text-decoration: none;
}

.w909e-btn-register {
  background: linear-gradient(135deg, var(--w909e-primary), #FF6347);
  color: #fff;
  box-shadow: 0 2px 6px rgba(255,69,0,0.4);
}

.w909e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255,69,0,0.6);
}

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

.w909e-btn-login:hover {
  background: rgba(255,215,0,0.1);
  transform: scale(1.05);
}

.w909e-btn-promo {
  background: linear-gradient(135deg, var(--w909e-primary), var(--w909e-accent));
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  border-radius: 2.5rem;
  box-shadow: 0 4px 12px rgba(255,69,0,0.4);
  display: block;
  text-align: center;
  width: 100%;
  max-width: 280px;
  margin: 1rem auto;
}

.w909e-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,69,0,0.5);
}

.w909e-btn-promo-sm {
  background: linear-gradient(135deg, var(--w909e-primary), var(--w909e-accent));
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
  border-radius: 2rem;
  display: inline-block;
  cursor: pointer;
}

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

/* Mobile Menu Overlay */
.w909e-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.w909e-overlay-active {
  display: block;
}

/* Mobile Slide Menu */
.w909e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w909e-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.w909e-menu-active {
  right: 0;
}

.w909e-mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--w909e-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.w909e-mobile-menu-nav {
  margin-top: 3rem;
  list-style: none;
}

.w909e-mobile-menu-nav li {
  border-bottom: 1px solid var(--w909e-border);
}

.w909e-mobile-menu-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--w909e-text);
  font-size: 1.5rem;
  transition: var(--w909e-transition);
}

.w909e-mobile-menu-nav a:hover {
  color: var(--w909e-primary);
  padding-left: 0.5rem;
}

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

/* Carousel */
.w909e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--w909e-radius);
  margin-bottom: 1.5rem;
}

.w909e-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.w909e-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.w909e-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

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

/* Section Titles */
.w909e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w909e-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w909e-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w909e-section-title i,
.w909e-section-title .material-icons {
  font-size: 2rem;
  color: var(--w909e-primary);
}

.w909e-section {
  margin-bottom: 2rem;
  padding: 0 1.2rem;
}

/* Category Headers */
.w909e-cat-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w909e-text);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w909e-primary);
}

/* Game Grid */
.w909e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w909e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--w909e-transition);
  border-radius: var(--w909e-radius);
  padding: 0.5rem;
  background: var(--w909e-bg-card);
}

.w909e-game-item:hover {
  transform: scale(1.05);
  box-shadow: var(--w909e-shadow);
}

.w909e-game-item:active {
  transform: scale(0.95);
}

.w909e-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.w909e-game-name {
  font-size: 1rem;
  color: var(--w909e-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Content Sections */
.w909e-content-block {
  background: var(--w909e-bg-light);
  border-radius: var(--w909e-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.w909e-content-block h2 {
  font-size: 1.6rem;
  color: var(--w909e-secondary);
  margin-bottom: 1rem;
}

.w909e-content-block h3 {
  font-size: 1.4rem;
  color: var(--w909e-primary);
  margin: 0.8rem 0 0.5rem;
}

.w909e-content-block p {
  color: var(--w909e-text-muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.w909e-content-block ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.w909e-content-block li {
  color: var(--w909e-text-muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

/* Feature Cards */
.w909e-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.w909e-feature-card {
  background: var(--w909e-bg-card);
  border-radius: var(--w909e-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--w909e-border);
  transition: var(--w909e-transition);
}

.w909e-feature-card:hover {
  border-color: var(--w909e-primary);
}

.w909e-feature-card i,
.w909e-feature-card .material-icons {
  font-size: 2.4rem;
  color: var(--w909e-primary);
  margin-bottom: 0.5rem;
}

.w909e-feature-card h4 {
  font-size: 1.2rem;
  color: var(--w909e-secondary);
  margin-bottom: 0.3rem;
}

.w909e-feature-card p {
  font-size: 1.1rem;
  color: var(--w909e-text-muted);
}

/* RTP Table */
.w909e-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.w909e-rtp-table th {
  background: var(--w909e-dark-green);
  color: var(--w909e-secondary);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.w909e-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--w909e-border);
  color: var(--w909e-text-muted);
}

.w909e-rtp-table tr:hover td {
  background: rgba(255,69,0,0.1);
}

/* Testimonials */
.w909e-testimonial {
  background: var(--w909e-bg-card);
  border-radius: var(--w909e-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w909e-secondary);
}

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

.w909e-testimonial-author {
  font-size: 1.1rem;
  color: var(--w909e-secondary);
  font-weight: 600;
}

/* Footer */
.w909e-footer {
  background: var(--w909e-bg-light);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--w909e-primary);
  margin-top: 2rem;
}

.w909e-footer-desc {
  font-size: 1.2rem;
  color: var(--w909e-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.w909e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.w909e-footer-link {
  color: var(--w909e-secondary);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--w909e-border);
  border-radius: 0.4rem;
  transition: var(--w909e-transition);
}

.w909e-footer-link:hover {
  border-color: var(--w909e-primary);
  color: var(--w909e-primary);
}

.w909e-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.w909e-footer-promo .w909e-btn-promo-sm {
  font-size: 1rem;
  padding: 0.4rem 1rem;
}

.w909e-footer-copy {
  text-align: center;
  font-size: 1rem;
  color: var(--w909e-text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--w909e-border);
}

/* Bottom Mobile Navigation */
.w909e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #2F4F4F 0%, #1C1C1C 100%);
  border-top: 2px solid var(--w909e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

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

.w909e-bottom-nav-btn:hover,
.w909e-bottom-nav-btn:focus {
  color: var(--w909e-primary);
  background: rgba(255,69,0,0.1);
}

.w909e-bottom-nav-btn:active {
  transform: scale(0.9);
}

.w909e-bottom-nav-btn i,
.w909e-bottom-nav-btn .material-icons,
.w909e-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.w909e-bottom-nav-btn span {
  font-size: 10px;
  line-height: 1;
}

.w909e-bottom-nav-btn.w909e-active {
  color: var(--w909e-primary);
}

.w909e-bottom-nav-btn.w909e-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--w909e-primary);
  border-radius: 1px;
  margin-top: 2px;
}

/* Winners List */
.w909e-winner-list {
  list-style: none;
}

.w909e-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--w909e-border);
  font-size: 1.2rem;
}

.w909e-winner-name {
  color: var(--w909e-secondary);
  font-weight: 600;
}

.w909e-winner-amount {
  color: var(--w909e-primary);
  font-weight: 700;
}

.w909e-winner-game {
  color: var(--w909e-text-muted);
  font-size: 1rem;
}

/* Payment Icons */
.w909e-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.w909e-payment-item {
  background: var(--w909e-bg-card);
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--w909e-text);
  border: 1px solid var(--w909e-border);
}

/* FAQ Accordion */
.w909e-faq-item {
  background: var(--w909e-bg-card);
  border-radius: var(--w909e-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.w909e-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--w909e-text);
  padding: 0.8rem 1rem;
}

.w909e-faq-a {
  font-size: 1.2rem;
  color: var(--w909e-text-muted);
  padding: 0 1rem 0.8rem;
  line-height: 1.5;
}

/* Responsive */
@media (min-width: 769px) {
  .w909e-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .w909e-main {
    padding-bottom: 80px;
  }
}
