/* layout-ca21.css - Luckyking Core Stylesheet */
/* All classes prefixed with wca21- */
/* Mobile-first design, max-width 430px */

/* === CSS Variables === */
:root {
  --wca21-primary: #1E90FF;
  --wca21-bg: #1C2833;
  --wca21-bg-light: #2C3E50;
  --wca21-accent: #FF6347;
  --wca21-secondary: #0000CD;
  --wca21-text: #F0F3F4;
  --wca21-text-muted: #BDC3C7;
  --wca21-card-bg: #212F3D;
  --wca21-border: #34495E;
  --wca21-success: #2ECC71;
  --wca21-gold: #F1C40F;
  --wca21-header-h: 56px;
  --wca21-bottomnav-h: 60px;
  --wca21-radius: 8px;
  --wca21-radius-lg: 12px;
  --wca21-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --wca21-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
}

/* === Reset & Base === */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--wca21-bg);
  color: var(--wca21-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

a { color: var(--wca21-primary); text-decoration: none; }
a:hover { color: var(--wca21-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 2rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }

/* === Container === */
.wca21-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  box-sizing: border-box;
}

.wca21-wrapper {
  padding-top: var(--wca21-header-h);
  padding-bottom: 2rem;
}

/* === Header === */
.wca21-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wca21-header-h);
  background: var(--wca21-bg);
  border-bottom: 1px solid var(--wca21-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: var(--wca21-shadow);
}

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

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

.wca21-header-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wca21-primary);
  letter-spacing: 0.5px;
}

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

.wca21-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--wca21-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 32px;
  line-height: 1;
}

.wca21-btn-register {
  background: var(--wca21-accent);
  color: #fff;
}

.wca21-btn-register:hover {
  background: #E5573F;
  color: #fff;
}

.wca21-btn-login {
  background: var(--wca21-primary);
  color: #fff;
}

.wca21-btn-login:hover {
  background: #0B7FE6;
  color: #fff;
}

.wca21-hamburger {
  background: none;
  border: none;
  color: var(--wca21-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

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

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

.wca21-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--wca21-border);
}

.wca21-menu-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wca21-primary);
}

.wca21-menu-close {
  background: none;
  border: none;
  color: var(--wca21-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
}

.wca21-menu-nav {
  padding: 1rem 0;
}

.wca21-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--wca21-text);
  font-size: 1.4rem;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(52,73,94,0.3);
}

.wca21-menu-link:hover {
  background: rgba(30,144,255,0.1);
  color: var(--wca21-primary);
}

.wca21-menu-link i,
.wca21-menu-link .material-icons {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* === Overlay === */
.wca21-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wca21-overlay-active {
  opacity: 1;
  visibility: visible;
}

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

.wca21-slides-wrapper {
  position: relative;
  width: 100%;
  padding-top: 50%;
}

.wca21-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--wca21-radius) ease;
  cursor: pointer;
}

.wca21-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wca21-slide-active {
  opacity: 1;
}

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

.wca21-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.wca21-dot-active {
  background: var(--wca21-accent);
}

/* === Section Headings === */
.wca21-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wca21-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wca21-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

/* === Game Grid === */
.wca21-game-section {
  margin: 1.5rem 0;
}

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

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

.wca21-game-card:hover {
  transform: scale(1.05);
}

.wca21-game-card:active {
  transform: scale(0.95);
}

.wca21-game-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--wca21-radius);
  object-fit: cover;
  border: 2px solid var(--wca21-border);
  transition: border-color 0.2s;
}

.wca21-game-card:hover .wca21-game-icon {
  border-color: var(--wca21-primary);
}

.wca21-game-name {
  font-size: 1.1rem;
  color: var(--wca21-text-muted);
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

/* === Content Modules === */
.wca21-module {
  background: var(--wca21-card-bg);
  border-radius: var(--wca21-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--wca21-border);
}

.wca21-module h2 {
  color: var(--wca21-primary);
  margin-bottom: 1rem;
  font-size: 1.7rem;
}

.wca21-module h3 {
  color: var(--wca21-text);
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.wca21-module p {
  color: var(--wca21-text-muted);
  line-height: 1.6;
}

.wca21-module ul {
  color: var(--wca21-text-muted);
  padding-left: 1.8rem;
}

.wca21-module li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* === CTA Banner === */
.wca21-cta {
  background: linear-gradient(135deg, var(--wca21-secondary), var(--wca21-primary));
  border-radius: var(--wca21-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.wca21-cta:hover {
  transform: scale(1.02);
}

.wca21-cta h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

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

.wca21-cta-btn {
  display: inline-block;
  background: var(--wca21-accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--wca21-radius);
  font-size: 1.4rem;
  font-weight: 700;
  transition: background 0.2s;
}

.wca21-cta-btn:hover {
  background: #E5573F;
  color: #fff;
}

/* === Affiliate Links === */
.wca21-aff-link {
  color: var(--wca21-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.wca21-aff-link:hover {
  color: var(--wca21-primary);
}

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

.wca21-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

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

.wca21-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.wca21-footer-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--wca21-card-bg);
  border: 1px solid var(--wca21-border);
  border-radius: var(--wca21-radius);
  color: var(--wca21-text-muted);
  font-size: 1.2rem;
  transition: all 0.2s;
}

.wca21-footer-link:hover {
  background: var(--wca21-primary);
  color: #fff;
  border-color: var(--wca21-primary);
}

.wca21-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.wca21-footer-partner {
  font-size: 1.1rem;
  color: var(--wca21-text-muted);
  background: var(--wca21-card-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

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

/* === Bottom Navigation === */
.wca21-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--wca21-bottomnav-h);
  background: var(--wca21-bg);
  border-top: 1px solid var(--wca21-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
}

.wca21-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--wca21-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.3rem;
  gap: 2px;
  position: relative;
}

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

.wca21-bottom-btn .wca21-bottom-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

.wca21-bottom-btn:hover .wca21-bottom-icon {
  transform: scale(1.15);
}

.wca21-bottom-btn .wca21-bottom-label {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.wca21-bottom-btn.wca21-bottom-active {
  color: var(--wca21-accent);
}

.wca21-bottom-btn.wca21-bottom-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--wca21-accent);
  border-radius: 0 0 2px 2px;
}

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

.wca21-testimonial-author {
  font-weight: 700;
  color: var(--wca21-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

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

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

.wca21-payment-item {
  background: var(--wca21-card-bg);
  border: 1px solid var(--wca21-border);
  border-radius: var(--wca21-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--wca21-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Winners Showcase === */
.wca21-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wca21-border);
}

.wca21-winner:last-child {
  border-bottom: none;
}

.wca21-winner-name {
  font-weight: 600;
  color: var(--wca21-text);
  font-size: 1.3rem;
}

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

.wca21-winner-amount {
  color: var(--wca21-accent);
  font-weight: 700;
  font-size: 1.3rem;
  margin-left: auto;
}

/* === RTP Table === */
.wca21-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.wca21-rtp-table th {
  background: var(--wca21-primary);
  color: #fff;
  padding: 0.6rem;
  text-align: left;
  font-size: 1.1rem;
}

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

.wca21-rtp-table tr:nth-child(even) {
  background: rgba(30,144,255,0.05);
}

/* === Feature Cards === */
.wca21-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

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

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

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

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

/* === Promo Badge === */
.wca21-badge {
  display: inline-block;
  background: var(--wca21-accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
}

/* === App Download Section === */
.wca21-app-dl {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.wca21-app-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: var(--wca21-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.wca21-app-btn:hover {
  opacity: 0.9;
}

.wca21-app-android {
  background: #3DDC84;
  color: #1C2833;
}

.wca21-app-ios {
  background: #007AFF;
  color: #fff;
}

/* === FAQ Styles === */
.wca21-faq-item {
  background: var(--wca21-card-bg);
  border-radius: var(--wca21-radius);
  margin-bottom: 0.8rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--wca21-primary);
}

.wca21-faq-q {
  font-weight: 700;
  color: var(--wca21-text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.wca21-faq-a {
  color: var(--wca21-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* === Internal Links === */
.wca21-internal-link {
  color: var(--wca21-primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.wca21-internal-link:hover {
  color: var(--wca21-accent);
}

/* === Stars === */
.wca21-stars {
  color: var(--wca21-gold);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* === Highlight Bar === */
.wca21-highlight-bar {
  background: linear-gradient(90deg, var(--wca21-primary), var(--wca21-secondary));
  padding: 0.6rem 1.2rem;
  border-radius: var(--wca21-radius);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

/* === Responsive === */
@media (min-width: 431px) {
  .wca21-container {
    padding: 0 1.5rem;
  }
}

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

  .wca21-wrapper {
    padding-bottom: 2rem;
  }

  .wca21-footer {
    padding-bottom: 2rem;
  }

  .wca21-container {
    max-width: 430px;
  }

  .wca21-hamburger {
    display: none;
  }
}

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

  main {
    padding-bottom: 80px;
  }
}
