/**
 * 89bd bet - Theme Stylesheet
 * Mobile-first design, max-width 430px
 * All classes use w5c3c- prefix
 * Color palette: #DEB887, #3A3A3A, #CD853F, #FFEF94, #BC8F8F
 */

/* CSS Variables */
:root {
  --w5c3c-primary: #DEB887;
  --w5c3c-bg: #1a1714;
  --w5c3c-bg-light: #2a2520;
  --w5c3c-bg-card: #332e28;
  --w5c3c-text: #FFEF94;
  --w5c3c-text-light: #DEB887;
  --w5c3c-accent: #CD853F;
  --w5c3c-accent2: #BC8F8F;
  --w5c3c-dark: #3A3A3A;
  --w5c3c-border: #4a4338;
  --w5c3c-shadow: rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w5c3c-bg);
  color: var(--w5c3c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--w5c3c-primary);
  text-decoration: none;
}

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

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

.w5c3c-wrapper {
  padding: 1rem 0;
}

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

.w5c3c-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w5c3c-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w5c3c-site-name {
  color: var(--w5c3c-primary);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.w5c3c-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w5c3c-btn-register {
  background: linear-gradient(135deg, #CD853F, #DEB887);
  color: #1a1714;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  min-width: 60px;
}

.w5c3c-btn-login {
  background: transparent;
  color: var(--w5c3c-primary);
  border: 1.5px solid var(--w5c3c-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  min-width: 50px;
}

.w5c3c-menu-btn {
  background: none;
  border: none;
  color: var(--w5c3c-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.w5c3c-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Mobile Slide Menu */
.w5c3c-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: #2a2520;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.w5c3c-mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w5c3c-border);
}

.w5c3c-mobile-menu-header img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.w5c3c-mobile-menu-header span {
  color: var(--w5c3c-primary);
  font-size: 1.8rem;
  font-weight: 700;
}

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

.w5c3c-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--w5c3c-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(205, 133, 63, 0.15);
  transition: color 0.2s;
}

.w5c3c-mobile-menu nav a:hover,
.w5c3c-mobile-menu nav a:active {
  color: var(--w5c3c-primary);
}

.w5c3c-mobile-menu nav a .material-icons,
.w5c3c-mobile-menu nav a ion-icon,
.w5c3c-mobile-menu nav a i {
  font-size: 20px;
  color: var(--w5c3c-accent);
}

/* Main Content */
.w5c3c-main {
  padding-top: 56px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .w5c3c-main {
    padding-bottom: 0;
  }
}

/* Banner Carousel */
.w5c3c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.w5c3c-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.w5c3c-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}

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

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

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

/* Section Headings */
.w5c3c-section-title {
  color: var(--w5c3c-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--w5c3c-accent);
}

.w5c3c-section-subtitle {
  color: var(--w5c3c-accent2);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

/* Category Tabs */
.w5c3c-cat-label {
  color: var(--w5c3c-accent);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.2rem 0 0.6rem;
  padding: 0.4rem 0.8rem;
  background: var(--w5c3c-bg-light);
  border-radius: 6px;
  display: inline-block;
}

/* Game Grid */
.w5c3c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
}

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

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

.w5c3c-game-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--w5c3c-border);
  margin-bottom: 0.3rem;
}

.w5c3c-game-name {
  font-size: 1.1rem;
  color: var(--w5c3c-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Promo Cards */
.w5c3c-card {
  background: var(--w5c3c-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w5c3c-border);
}

.w5c3c-card-title {
  color: var(--w5c3c-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.w5c3c-card p {
  color: var(--w5c3c-text);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

/* CTA Button */
.w5c3c-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #CD853F, #DEB887);
  color: #1a1714;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  transition: opacity 0.2s;
}

.w5c3c-btn-cta:hover {
  opacity: 0.9;
}

.w5c3c-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--w5c3c-primary);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  border: 1.5px solid var(--w5c3c-accent);
  cursor: pointer;
  min-height: 44px;
}

/* Promo Link Text */
.w5c3c-promo-link {
  color: var(--w5c3c-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.3rem;
}

/* Content Text */
.w5c3c-content {
  padding: 0.8rem 0;
  line-height: 1.7;
}

.w5c3c-content p {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.w5c3c-content h2 {
  color: var(--w5c3c-primary);
  font-size: 1.7rem;
  margin: 1.5rem 0 0.6rem;
}

.w5c3c-content h3 {
  color: var(--w5c3c-accent);
  font-size: 1.5rem;
  margin: 1.2rem 0 0.4rem;
}

.w5c3c-content ul {
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.w5c3c-content li {
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

/* Feature List */
.w5c3c-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.w5c3c-feature-item {
  background: var(--w5c3c-bg-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--w5c3c-border);
}

.w5c3c-feature-item i,
.w5c3c-feature-item .material-icons,
.w5c3c-feature-item ion-icon {
  font-size: 24px;
  color: var(--w5c3c-accent);
  margin-bottom: 0.4rem;
}

.w5c3c-feature-item p {
  font-size: 1.2rem;
  color: var(--w5c3c-text);
}

/* Winner List */
.w5c3c-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.w5c3c-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--w5c3c-bg-light);
  border-radius: 6px;
  font-size: 1.2rem;
}

.w5c3c-winner-name {
  color: var(--w5c3c-primary);
  font-weight: 600;
}

.w5c3c-winner-amount {
  color: #4ade80;
  font-weight: 700;
}

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

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

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

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

.w5c3c-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.w5c3c-footer-brand p {
  font-size: 1.2rem;
  color: var(--w5c3c-accent2);
  line-height: 1.6;
}

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

.w5c3c-footer-links a {
  background: var(--w5c3c-bg-card);
  padding: 0.4rem 1rem;
  border-radius: 15px;
  font-size: 1.1rem;
  color: var(--w5c3c-primary);
  border: 1px solid var(--w5c3c-border);
  transition: background 0.2s;
}

.w5c3c-footer-links a:hover {
  background: var(--w5c3c-accent);
  color: #1a1714;
}

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

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

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

.w5c3c-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(--w5c3c-accent2);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
}

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

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

.w5c3c-bottom-nav-btn i,
.w5c3c-bottom-nav-btn .material-icons {
  font-size: 22px;
}

.w5c3c-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.w5c3c-bottom-nav-active {
  color: var(--w5c3c-primary) !important;
}

.w5c3c-bottom-nav-active span {
  color: var(--w5c3c-primary);
}

/* Responsive - mobile bottom padding */
@media (max-width: 768px) {
  .w5c3c-main {
    padding-bottom: 75px;
  }
}

/* FAQ Accordion */
.w5c3c-faq-item {
  border-bottom: 1px solid var(--w5c3c-border);
  padding: 0.8rem 0;
}

.w5c3c-faq-q {
  color: var(--w5c3c-primary);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.w5c3c-faq-a {
  color: var(--w5c3c-text);
  font-size: 1.2rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* Testimonial */
.w5c3c-testimonial {
  background: var(--w5c3c-bg-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w5c3c-accent);
}

.w5c3c-testimonial-text {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--w5c3c-text);
  font-style: italic;
}

.w5c3c-testimonial-author {
  color: var(--w5c3c-accent);
  font-size: 1.1rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* App Download CTA */
.w5c3c-app-cta {
  background: linear-gradient(135deg, var(--w5c3c-bg-card), var(--w5c3c-bg-light));
  border: 1.5px solid var(--w5c3c-accent);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.w5c3c-app-cta h3 {
  color: var(--w5c3c-primary);
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.w5c3c-app-cta p {
  color: var(--w5c3c-text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Utility */
.w5c3c-text-center { text-align: center; }
.w5c3c-mt-1 { margin-top: 0.5rem; }
.w5c3c-mt-2 { margin-top: 1rem; }
.w5c3c-mb-1 { margin-bottom: 0.5rem; }
.w5c3c-mb-2 { margin-bottom: 1rem; }
.w5c3c-bold { font-weight: 700; }
.w5c3c-hidden { display: none; }
