/* =========================================================
   vip77 basefile CSS - design-facb.css
   All custom classes use the dynamic prefix "wfacb-".
   Palette: #DA70D6 | #DDA0DD | #F8F9FA | #2C3E50 | #8A2BE2
   ========================================================= */

:root {
  --wfacb-primary: #8A2BE2;
  --wfacb-secondary: #DA70D6;
  --wfacb-accent: #DDA0DD;
  --wfacb-bg: #2C3E50;
  --wfacb-bg-deep: #1f2a38;
  --wfacb-text: #F8F9FA;
  --wfacb-text-muted: #c7cfda;
  --wfacb-card-bg: #34465b;
  --wfacb-gold: #ffd76b;
  --wfacb-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--wfacb-bg-deep), var(--wfacb-bg));
  color: var(--wfacb-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--wfacb-accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.wfacb-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.wfacb-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ============ HEADER ============ */
.wfacb-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(44,62,80,0.96), rgba(138,43,226,0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(221,160,221,0.25);
}
.wfacb-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; min-height: 5.2rem;
}
.wfacb-logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--wfacb-text); font-weight: 700; font-size: 1.8rem;
}
.wfacb-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.wfacb-logo .wfacb-logo-text {
  background: linear-gradient(90deg, #ffd76b, #DDA0DD);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wfacb-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wfacb-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem;
  font-weight: 700; font-size: 1.3rem; cursor: pointer;
  border: none; transition: transform .15s ease, box-shadow .15s ease;
  min-height: 3.6rem; text-align: center; line-height: 1.4rem;
}
.wfacb-btn:active { transform: scale(0.95); }
.wfacb-btn-register {
  background: linear-gradient(90deg, var(--wfacb-gold), #ffae42);
  color: #2C3E50; box-shadow: 0 3px 10px rgba(255,215,107,0.4);
}
.wfacb-btn-login {
  background: transparent; color: var(--wfacb-text);
  border: 1.5px solid var(--wfacb-accent);
}
.wfacb-menu-btn {
  background: transparent; border: none; color: var(--wfacb-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem;
  display: flex; align-items: center; min-height: 3.6rem;
}

/* ============ MOBILE MENU ============ */
.wfacb-mobile-menu {
  position: fixed; top: 5.2rem; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: rgba(31,42,56,0.98);
  border-bottom: 1px solid rgba(221,160,221,0.3);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.wfacb-mobile-menu.wfacb-active { max-height: 70vh; overflow-y: auto; }
.wfacb-mobile-menu ul { list-style: none; padding: 0.6rem 0; }
.wfacb-mobile-menu li a {
  display: block; padding: 1.2rem 1.6rem;
  color: var(--wfacb-text); font-size: 1.4rem;
  border-bottom: 1px solid rgba(221,160,221,0.12);
}
.wfacb-mobile-menu li a:active { background: rgba(138,43,226,0.25); }

/* ============ MAIN / SECTION ============ */
.wfacb-main { padding-top: 6rem; }
@media (max-width: 768px) {
  .wfacb-main { padding-bottom: 8rem; }
}
.wfacb-section { padding: 1.6rem 0; }
.wfacb-section-title {
  font-size: 1.8rem; margin-bottom: 1rem; color: var(--wfacb-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.wfacb-section-title i { color: var(--wfacb-gold); }

/* ============ CAROUSEL ============ */
.wfacb-carousel {
  position: relative; border-radius: 1.2rem; overflow: hidden;
  box-shadow: var(--wfacb-shadow); margin-bottom: 1.6rem;
}
.wfacb-slide {
  display: none; cursor: pointer; position: relative;
}
.wfacb-slide.wfacb-active { display: block; }
.wfacb-slide img { width: 100%; height: 18rem; object-fit: cover; }
.wfacb-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(31,42,56,0.7); padding: 0.6rem 1rem;
  border-radius: 0.8rem; font-size: 1.3rem; font-weight: 600;
}
.wfacb-carousel-prev, .wfacb-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.wfacb-carousel-prev { left: 0.6rem; }
.wfacb-carousel-next { right: 0.6rem; }
.wfacb-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem;
}
.wfacb-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; border: none;
}
.wfacb-dot.wfacb-active { background: var(--wfacb-gold); }

/* ============ GAME GRID ============ */
.wfacb-game-cat-title {
  font-size: 1.6rem; color: var(--wfacb-gold);
  margin: 1.2rem 0 0.8rem; padding-left: 0.4rem;
  border-left: 4px solid var(--wfacb-primary);
}
.wfacb-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
@media (min-width: 431px) { .wfacb-grid { grid-template-columns: repeat(5, 1fr); } }
.wfacb-game-card {
  background: var(--wfacb-card-bg); border-radius: 0.8rem;
  overflow: hidden; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.wfacb-game-card:active { transform: scale(0.96); }
.wfacb-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wfacb-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.2rem 0.5rem;
  color: var(--wfacb-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ CARD / FEATURE ============ */
.wfacb-card {
  background: var(--wfacb-card-bg); border-radius: 1rem;
  padding: 1.2rem; margin-bottom: 1rem;
  box-shadow: var(--wfacb-shadow);
}
.wfacb-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--wfacb-accent); }
.wfacb-card p { font-size: 1.3rem; color: var(--wfacb-text-muted); margin-bottom: 0.6rem; }

.wfacb-promo-link {
  color: var(--wfacb-gold); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}
.wfacb-promo-link:active { color: var(--wfacb-secondary); }

.wfacb-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.wfacb-feature-item {
  background: var(--wfacb-card-bg); border-radius: 0.8rem; padding: 1rem;
  text-align: center;
}
.wfacb-feature-item i { font-size: 2.4rem; color: var(--wfacb-secondary); margin-bottom: 0.4rem; }
.wfacb-feature-item h4 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.wfacb-feature-item p { font-size: 1.1rem; color: var(--wfacb-text-muted); }

/* ============ FAQ ============ */
.wfacb-faq-item {
  background: var(--wfacb-card-bg); border-radius: 0.8rem;
  margin-bottom: 0.8rem; padding: 1rem 1.2rem;
}
.wfacb-faq-item h4 { font-size: 1.35rem; color: var(--wfacb-gold); margin-bottom: 0.4rem; }
.wfacb-faq-item p { font-size: 1.25rem; color: var(--wfacb-text-muted); }

/* ============ TESTIMONIAL / WINNER ============ */
.wfacb-testimonial {
  background: var(--wfacb-card-bg); border-radius: 0.8rem;
  padding: 1rem; margin-bottom: 0.8rem; display: flex; gap: 0.8rem;
  align-items: center;
}
.wfacb-avatar {
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--wfacb-secondary), var(--wfacb-primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.4rem; flex-shrink: 0;
}
.wfacb-testimonial-text { font-size: 1.25rem; color: var(--wfacb-text-muted); }
.wfacb-testimonial-text strong { color: var(--wfacb-gold); }

/* ============ PAYMENT / APP CTA ============ */
.wfacb-payment-row, .wfacb-app-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.wfacb-payment-chip, .wfacb-app-chip {
  background: var(--wfacb-card-bg); border: 1px solid rgba(221,160,221,0.3);
  border-radius: 2rem; padding: 0.5rem 1rem; font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.wfacb-app-cta {
  background: linear-gradient(135deg, var(--wfacb-primary), var(--wfacb-secondary));
  border-radius: 1rem; padding: 1.4rem; text-align: center; margin-top: 1rem;
}
.wfacb-app-cta h3 { color: var(--wfacb-gold); font-size: 1.6rem; margin-bottom: 0.5rem; }
.wfacb-app-cta p { color: #fff; font-size: 1.25rem; margin-bottom: 0.8rem; }
.wfacb-cta-btn {
  display: inline-block; background: var(--wfacb-gold); color: #2C3E50;
  padding: 0.8rem 1.8rem; border-radius: 2rem; font-weight: 700;
  cursor: pointer; border: none; min-height: 3.6rem;
}

/* ============ FOOTER ============ */
.wfacb-footer {
  background: var(--wfacb-bg-deep); padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.6rem; border-top: 1px solid rgba(221,160,221,0.2);
}
.wfacb-footer-brand { font-size: 1.25rem; color: var(--wfacb-text-muted); margin-bottom: 1rem; line-height: 1.7rem; }
.wfacb-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem;
}
.wfacb-footer-links a {
  background: var(--wfacb-card-bg); color: var(--wfacb-text);
  padding: 0.5rem 0.9rem; border-radius: 1.4rem; font-size: 1.15rem;
}
.wfacb-footer-links a:active { background: var(--wfacb-primary); }
.wfacb-footer-copy { font-size: 1.1rem; color: var(--wfacb-text-muted); text-align: center; }

/* ============ BOTTOM NAV ============ */
.wfacb-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 6rem;
  background: linear-gradient(90deg, #1f2a38, #2C3E50);
  border-top: 1px solid rgba(221,160,221,0.3);
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px; margin: 0 auto;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.35);
}
.wfacb-bottomnav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; color: var(--wfacb-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; position: relative;
  transition: transform .15s ease, color .15s ease;
}
.wfacb-bottomnav-btn:active { transform: scale(0.9); color: var(--wfacb-gold); }
.wfacb-bottomnav-btn i, .wfacb-bottomnav-btn .material-icons-outlined,
.wfacb-bottomnav-btn ion-icon { font-size: 2.4rem; }
.wfacb-bottomnav-btn span { font-size: 1.1rem; }
.wfacb-bottomnav-btn.wfacb-current { color: var(--wfacb-gold); }
.wfacb-bottomnav-btn.wfacb-current::after {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%;
  height: 3px; background: var(--wfacb-gold); border-radius: 0 0 3px 3px;
}
@media (min-width: 769px) { .wfacb-bottomnav { display: none; } }

/* Desktop helper: keep header centered on wide screens */
@media (min-width: 769px) {
  body { background: linear-gradient(160deg, #1f2a38, #2C3E50); }
}
