/* 8k8 Casino - Main Stylesheet */
/* All classes use w415c- prefix for namespace isolation */
/* Color Palette: #F8F8FF | #004D40 | #8470FF | #34495E | #0E1621 */

:root {
  --w415c-primary: #8470FF;
  --w415c-primary-dark: #6a58e0;
  --w415c-secondary: #004D40;
  --w415c-bg-dark: #0E1621;
  --w415c-bg-mid: #34495E;
  --w415c-text-light: #F8F8FF;
  --w415c-text-muted: #b0b8c8;
  --w415c-accent: #FF6B35;
  --w415c-gold: #FFD700;
  --w415c-success: #00E676;
  --w415c-border: rgba(132, 112, 255, 0.2);
  --w415c-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --w415c-radius: 1rem;
}

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

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

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

a {
  color: var(--w415c-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--w415c-text-light);
}

/* === HEADER === */
.w415c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--w415c-bg-dark) 0%, #15243a 100%);
  border-bottom: 1px solid var(--w415c-border);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.w415c-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.w415c-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--w415c-primary), var(--w415c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.w415c-btn-login {
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--w415c-primary);
  color: var(--w415c-primary);
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.w415c-btn-login:hover {
  background: var(--w415c-primary);
  color: var(--w415c-text-light);
}

.w415c-btn-register {
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--w415c-primary), var(--w415c-primary-dark));
  border: none;
  color: var(--w415c-text-light);
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 32px;
}

.w415c-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(132, 112, 255, 0.5);
}

.w415c-menu-toggle {
  background: none;
  border: none;
  color: var(--w415c-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === MOBILE MENU === */
.w415c-mobile-menu {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--w415c-bg-dark) 0%, #0a1220 100%);
  border-bottom: 2px solid var(--w415c-primary);
  z-index: 9999;
  padding: 0.8rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
}

.w415c-mobile-menu.game411a-menu-active {
  display: flex;
}

.w415c-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--w415c-text-light);
  font-size: 1.4rem;
  border-radius: 0.6rem;
  transition: background 0.2s;
}

.w415c-menu-link:hover {
  background: rgba(132, 112, 255, 0.15);
  color: var(--w415c-primary);
}

.w415c-menu-link i, .w415c-menu-link span.material-symbols-outlined {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

/* === CAROUSEL === */
.w415c-carousel {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  border-radius: 0 0 1.2rem 1.2rem;
}

.w415c-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  position: relative;
}

.w415c-slide img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 180px;
  object-fit: cover;
}

.w415c-slide-active {
  display: block;
}

.w415c-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.9));
  padding: 2rem 1rem 1rem;
}

.w415c-slide-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w415c-text-light);
}

.w415c-slide-desc {
  font-size: 1.2rem;
  color: var(--w415c-text-muted);
  margin-top: 0.3rem;
}

.w415c-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
  background: var(--w415c-bg-dark);
}

.w415c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w415c-bg-mid);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

/* === MAIN CONTENT === */
.w415c-main {
  padding: 1rem;
  padding-bottom: 8rem;
}

.w415c-section {
  margin-bottom: 2rem;
}

.w415c-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w415c-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w415c-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w415c-section-title i {
  color: var(--w415c-primary);
}

/* === GAME GRID === */
.w415c-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w415c-gold);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--w415c-primary);
}

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

.w415c-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.w415c-game-item:hover {
  transform: scale(1.08);
}

.w415c-game-item img {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  border: 2px solid var(--w415c-border);
  object-fit: cover;
  transition: border-color 0.2s;
}

.w415c-game-item:hover img {
  border-color: var(--w415c-primary);
}

.w415c-game-name {
  font-size: 1rem;
  color: var(--w415c-text-muted);
  margin-top: 0.4rem;
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CONTENT CARDS === */
.w415c-card {
  background: linear-gradient(135deg, #15243a 0%, var(--w415c-bg-dark) 100%);
  border: 1px solid var(--w415c-border);
  border-radius: var(--w415c-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.w415c-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w415c-text-light);
  margin-bottom: 0.6rem;
}

.w415c-card p {
  font-size: 1.3rem;
  color: var(--w415c-text-muted);
  line-height: 1.8rem;
}

.w415c-card ul {
  list-style: none;
  padding: 0;
}

.w415c-card ul li {
  padding: 0.5rem 0;
  font-size: 1.3rem;
  color: var(--w415c-text-muted);
  padding-left: 1.6rem;
  position: relative;
}

.w415c-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--w415c-success);
  font-size: 1rem;
}

/* === PROMO BUTTONS === */
.w415c-promo-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--w415c-primary), var(--w415c-accent));
  color: var(--w415c-text-light);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border: none;
  min-height: 44px;
}

.w415c-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(132, 112, 255, 0.4);
}

.w415c-promo-link {
  color: var(--w415c-primary);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
}

.w415c-promo-link:hover {
  color: var(--w415c-gold);
}

/* === CTA BANNER === */
.w415c-cta {
  background: linear-gradient(135deg, var(--w415c-primary) 0%, #6a3fe0 50%, var(--w415c-accent) 100%);
  border-radius: var(--w415c-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.w415c-cta h2 {
  font-size: 2rem;
  color: var(--w415c-text-light);
  margin-bottom: 0.6rem;
}

.w415c-cta p {
  font-size: 1.3rem;
  color: rgba(248, 248, 255, 0.85);
  margin-bottom: 1rem;
}

/* === PAYMENT / METHOD ICONS === */
.w415c-method-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

.w415c-method-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--w415c-border);
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--w415c-text-muted);
}

/* === WINNER LIST === */
.w415c-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.w415c-winner-name {
  font-size: 1.3rem;
  color: var(--w415c-text-light);
}

.w415c-winner-game {
  font-size: 1.1rem;
  color: var(--w415c-primary);
}

.w415c-winner-amount {
  font-size: 1.3rem;
  color: var(--w415c-gold);
  font-weight: 700;
}

/* === RTP TABLE === */
.w415c-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
}

.w415c-rtp-table th {
  background: var(--w415c-secondary);
  color: var(--w415c-text-light);
  font-size: 1.2rem;
  padding: 0.8rem;
  text-align: left;
}

.w415c-rtp-table td {
  padding: 0.6rem 0.8rem;
  font-size: 1.2rem;
  color: var(--w415c-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.w415c-rtp-table tr:hover td {
  background: rgba(132, 112, 255, 0.08);
}

/* === FOOTER === */
.w415c-footer {
  background: linear-gradient(180deg, var(--w415c-bg-dark) 0%, #080e18 100%);
  border-top: 2px solid var(--w415c-primary);
  padding: 1.5rem 1rem;
  text-align: center;
}

.w415c-footer-brand {
  font-size: 1.3rem;
  color: var(--w415c-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

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

.w415c-footer-link {
  padding: 0.4rem 0.8rem;
  background: rgba(132, 112, 255, 0.12);
  border-radius: 0.4rem;
  font-size: 1.1rem;
  color: var(--w415c-primary);
  transition: all 0.2s;
}

.w415c-footer-link:hover {
  background: var(--w415c-primary);
  color: var(--w415c-text-light);
}

.w415c-copyright {
  font-size: 1.1rem;
  color: rgba(248, 248, 255, 0.4);
  margin-top: 0.8rem;
}

/* === BOTTOM NAV === */
.w415c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #15243a 0%, var(--w415c-bg-dark) 100%);
  border-top: 1px solid var(--w415c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.game411a-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 48px;
  background: none;
  border: none;
  color: var(--w415c-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
}

.game411a-bottom-btn i,
.game411a-bottom-btn .material-symbols-outlined,
.game411a-bottom-btn ion-icon {
  font-size: 2.2rem;
}

.game411a-bottom-btn span {
  font-size: 1rem;
  margin-top: 0.2rem;
}

.game411a-bottom-btn:hover,
.game411a-bottom-active {
  color: var(--w415c-primary);
}

.game411a-bottom-active {
  position: relative;
}

.game411a-bottom-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--w415c-primary);
  border-radius: 0 0 3px 3px;
}

/* === DESKTOP === */
@media (min-width: 769px) {
  .w415c-bottom-nav {
    display: none;
  }
  .w415c-header {
    max-width: 430px;
  }
  .w415c-mobile-menu {
    max-width: 430px;
  }
}

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

/* === UTILITIES === */
.w415c-text-center { text-align: center; }
.w415c-mt-1 { margin-top: 0.8rem; }
.w415c-mt-2 { margin-top: 1.6rem; }
.w415c-mb-1 { margin-bottom: 0.8rem; }
.w415c-mb-2 { margin-bottom: 1.6rem; }
.w415c-bold { font-weight: 700; }
.w415c-hidden { display: none; }

.w415c-rating-stars {
  color: var(--w415c-gold);
  font-size: 1.4rem;
  letter-spacing: 2px;
}

/* === FAQ SECTION === */
.w415c-faq-item {
  border-bottom: 1px solid var(--w415c-border);
  padding: 1rem 0;
}

.w415c-faq-q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w415c-text-light);
  margin-bottom: 0.4rem;
}

.w415c-faq-a {
  font-size: 1.3rem;
  color: var(--w415c-text-muted);
  line-height: 1.8rem;
}

/* === TESTIMONIALS === */
.w415c-testimonial {
  background: rgba(132, 112, 255, 0.06);
  border-left: 3px solid var(--w415c-primary);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.w415c-testimonial-text {
  font-size: 1.3rem;
  color: var(--w415c-text-muted);
  font-style: italic;
  line-height: 1.7rem;
}

.w415c-testimonial-author {
  font-size: 1.2rem;
  color: var(--w415c-primary);
  margin-top: 0.4rem;
  font-weight: 600;
}
