/**
 * PHDREAM - Core Stylesheet
 * Prefix: wfcc8-
 * Mobile-first dark theme design
 */

/* CSS Variables */
:root {
  --wfcc8-bg: #1A1A1A;
  --wfcc8-bg-light: #222222;
  --wfcc8-bg-card: #2A2A2A;
  --wfcc8-text: #DCDCDC;
  --wfcc8-text-muted: #A9A9A9;
  --wfcc8-accent: #FFE135;
  --wfcc8-accent-dark: #E6CC00;
  --wfcc8-gray: #A9A9A9;
  --wfcc8-border: #333333;
  --wfcc8-radius: 8px;
  --wfcc8-radius-lg: 12px;
  --wfcc8-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --wfcc8-header-h: 56px;
  --wfcc8-bottom-nav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--wfcc8-bg);
  color: var(--wfcc8-text);
  font-size: 1.5rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--wfcc8-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wfcc8-accent-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.wfcc8-container { max-width: 430px; margin: 0 auto; padding: 0 12px; }
.wfcc8-wrapper { width: 100%; padding: 0 12px; }

/* ==================== HEADER ==================== */
.wfcc8-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--wfcc8-bg); border-bottom: 1px solid var(--wfcc8-border);
  height: var(--wfcc8-header-h);
}
.wfcc8-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.wfcc8-logo { display: flex; align-items: center; gap: 8px; }
.wfcc8-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wfcc8-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--wfcc8-accent); letter-spacing: 0.5px; }
.wfcc8-header-actions { display: flex; align-items: center; gap: 8px; }
.wfcc8-btn-register, .wfcc8-btn-login {
  border: none; border-radius: 6px; padding: 6px 14px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.wfcc8-btn-register {
  background: var(--wfcc8-accent); color: var(--wfcc8-bg);
}
.wfcc8-btn-register:hover { background: var(--wfcc8-accent-dark); }
.wfcc8-btn-login {
  background: transparent; color: var(--wfcc8-accent); border: 1px solid var(--wfcc8-accent);
}
.wfcc8-btn-login:hover { background: var(--wfcc8-accent); color: var(--wfcc8-bg); }
.wfcc8-menu-toggle {
  background: none; border: none; color: var(--wfcc8-text); font-size: 22px; cursor: pointer;
  padding: 6px; display: flex; align-items: center; justify-content: center;
}

/* ==================== MOBILE MENU ==================== */
.wfcc8-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.wfcc8-overlay-active { opacity: 1; pointer-events: auto; }
.wfcc8-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--wfcc8-bg-light); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
}
.wfcc8-menu-active { right: 0; }
.wfcc8-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--wfcc8-border);
}
.wfcc8-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--wfcc8-accent); }
.wfcc8-menu-close { background: none; border: none; color: var(--wfcc8-text); font-size: 22px; cursor: pointer; }
.wfcc8-menu-nav { list-style: none; padding: 8px 0; }
.wfcc8-menu-nav li a {
  display: block; padding: 12px 20px; color: var(--wfcc8-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--wfcc8-border);
  transition: background 0.2s, color 0.2s;
}
.wfcc8-menu-nav li a:hover { background: var(--wfcc8-bg-card); color: var(--wfcc8-accent); }

/* ==================== CAROUSEL ==================== */
.wfcc8-carousel {
  position: relative; margin-top: var(--wfcc8-header-h);
  width: 100%; overflow: hidden; aspect-ratio: 16/7;
  background: var(--wfcc8-bg-light);
}
.wfcc8-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity var(--wfcc8-shadow, 0.5s);
  cursor: pointer;
}
.wfcc8-slide-active { opacity: 1; }
.wfcc8-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.wfcc8-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.wfcc8-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s;
}
.wfcc8-dot-active { background: var(--wfcc8-accent); }
.wfcc8-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.wfcc8-carousel-arrow:hover { background: rgba(0,0,0,0.7); }
.wfcc8-arrow-prev { left: 8px; }
.wfcc8-arrow-next { right: 8px; }

/* ==================== MAIN CONTENT ==================== */
main { margin-top: var(--wfcc8-header-h); padding-bottom: 20px; }
.wfcc8-section {
  padding: 16px 0; border-bottom: 1px solid var(--wfcc8-border);
}
.wfcc8-section:last-child { border-bottom: none; }
.wfcc8-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wfcc8-accent);
  margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--wfcc8-accent);
  display: inline-block;
}

/* ==================== GAME GRID ==================== */
.wfcc8-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.wfcc8-game-item {
  text-align: center; cursor: pointer;
  transition: transform 0.2s;
}
.wfcc8-game-item:hover { transform: translateY(-2px); }
.wfcc8-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--wfcc8-radius);
  border: 2px solid var(--wfcc8-border); transition: border-color 0.2s;
  object-fit: cover;
}
.wfcc8-game-item:hover img { border-color: var(--wfcc8-accent); }
.wfcc8-game-name {
  font-size: 1.1rem; color: var(--wfcc8-text-muted);
  margin-top: 4px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==================== CONTENT MODULES ==================== */
.wfcc8-content-block {
  padding: 16px 0;
}
.wfcc8-content-block h2 {
  font-size: 1.8rem; color: var(--wfcc8-accent); margin-bottom: 10px;
  font-weight: 700;
}
.wfcc8-content-block h3 {
  font-size: 1.5rem; color: var(--wfcc8-text); margin: 10px 0 6px;
}
.wfcc8-content-block p {
  font-size: 1.4rem; color: var(--wfcc8-text-muted); line-height: 1.6;
  margin-bottom: 8px;
}
.wfcc8-content-block ul, .wfcc8-content-block ol {
  padding-left: 20px; margin-bottom: 10px;
}
.wfcc8-content-block li {
  font-size: 1.4rem; color: var(--wfcc8-text-muted);
  line-height: 1.6; margin-bottom: 4px;
}

/* Promo link text */
.wfcc8-promo-link {
  color: var(--wfcc8-accent); font-weight: 600; cursor: pointer;
  transition: color 0.2s;
}
.wfcc8-promo-link:hover { color: var(--wfcc8-accent-dark); text-decoration: underline; }

/* Buttons */
.wfcc8-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--wfcc8-accent); color: var(--wfcc8-bg);
  border: none; border-radius: var(--wfcc8-radius); cursor: pointer;
  font-size: 1.4rem; font-weight: 700; text-align: center;
  transition: all 0.2s;
}
.wfcc8-btn:hover { background: var(--wfcc8-accent-dark); }
.wfcc8-btn-outline {
  background: transparent; color: var(--wfcc8-accent);
  border: 2px solid var(--wfcc8-accent);
}
.wfcc8-btn-outline:hover { background: var(--wfcc8-accent); color: var(--wfcc8-bg); }
.wfcc8-btn-lg { padding: 14px 32px; font-size: 1.6rem; width: 100%; }

/* Cards */
.wfcc8-card {
  background: var(--wfcc8-bg-card); border-radius: var(--wfcc8-radius-lg);
  padding: 16px; margin-bottom: 12px; border: 1px solid var(--wfcc8-border);
}
.wfcc8-card-title { font-size: 1.5rem; font-weight: 600; color: var(--wfcc8-accent); margin-bottom: 8px; }

/* Stats/Highlights */
.wfcc8-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.wfcc8-stat-item {
  background: var(--wfcc8-bg-card); border-radius: var(--wfcc8-radius);
  padding: 12px; text-align: center; border: 1px solid var(--wfcc8-border);
}
.wfcc8-stat-value { font-size: 2rem; font-weight: 700; color: var(--wfcc8-accent); }
.wfcc8-stat-label { font-size: 1.2rem; color: var(--wfcc8-text-muted); margin-top: 4px; }

/* Testimonial */
.wfcc8-testimonial {
  background: var(--wfcc8-bg-card); border-radius: var(--wfcc8-radius-lg);
  padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--wfcc8-accent);
}
.wfcc8-testimonial-text { font-size: 1.3rem; color: var(--wfcc8-text-muted); font-style: italic; }
.wfcc8-testimonial-author { font-size: 1.2rem; color: var(--wfcc8-accent); margin-top: 6px; }

/* Winner showcase */
.wfcc8-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--wfcc8-border);
}
.wfcc8-winner-name { font-size: 1.3rem; color: var(--wfcc8-text); }
.wfcc8-winner-amount { font-size: 1.4rem; font-weight: 700; color: var(--wfcc8-accent); }
.wfcc8-winner-game { font-size: 1.1rem; color: var(--wfcc8-text-muted); }

/* Payment icons */
.wfcc8-payment-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0;
}
.wfcc8-payment-item {
  background: var(--wfcc8-bg-card); border-radius: 6px;
  padding: 8px 14px; font-size: 1.2rem; color: var(--wfcc8-text-muted);
  border: 1px solid var(--wfcc8-border);
}

/* ==================== FOOTER ==================== */
.wfcc8-footer {
  background: var(--wfcc8-bg-light); padding: 20px 0 100px;
  border-top: 1px solid var(--wfcc8-border);
}
.wfcc8-footer-brand { font-size: 1.3rem; color: var(--wfcc8-text-muted); line-height: 1.6; margin-bottom: 16px; }
.wfcc8-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.wfcc8-footer-links a {
  background: var(--wfcc8-bg-card); padding: 6px 12px;
  border-radius: 6px; font-size: 1.2rem; color: var(--wfcc8-text-muted);
  border: 1px solid var(--wfcc8-border); transition: all 0.2s;
}
.wfcc8-footer-links a:hover { color: var(--wfcc8-accent); border-color: var(--wfcc8-accent); }
.wfcc8-footer-copy {
  font-size: 1.2rem; color: var(--wfcc8-gray); text-align: center;
  padding-top: 12px; border-top: 1px solid var(--wfcc8-border);
}

/* ==================== BOTTOM NAV ==================== */
.wfcc8-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--wfcc8-bottom-nav-h); z-index: 1000;
  background: var(--wfcc8-bg-light);
  border-top: 1px solid var(--wfcc8-border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 4px;
}
.wfcc8-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; cursor: pointer; color: var(--wfcc8-text-muted);
  transition: all 0.2s; border-radius: 8px; padding: 4px;
}
.wfcc8-bottom-nav-btn:active { transform: scale(0.92); }
.wfcc8-bottom-nav-btn .wfcc8-nav-icon { font-size: 22px; margin-bottom: 2px; }
.wfcc8-bottom-nav-btn .wfcc8-nav-label { font-size: 1rem; line-height: 1.1; }
.wfcc8-btn-active { color: var(--wfcc8-accent) !important; }
.wfcc8-btn-active .wfcc8-nav-icon { text-shadow: 0 0 8px rgba(255,225,53,0.4); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .wfcc8-bottom-nav { display: none; }
  .wfcc8-container { max-width: 430px; }
}

/* ==================== UTILITIES ==================== */
.wfcc8-text-accent { color: var(--wfcc8-accent); }
.wfcc8-text-muted { color: var(--wfcc8-text-muted); }
.wfcc8-mb-8 { margin-bottom: 8px; }
.wfcc8-mb-12 { margin-bottom: 12px; }
.wfcc8-mb-16 { margin-bottom: 16px; }
.wfcc8-mt-8 { margin-top: 8px; }
.wfcc8-text-center { text-align: center; }
.wfcc8-fw-bold { font-weight: 700; }

/* FAQ accordion style */
.wfcc8-faq-item { border-bottom: 1px solid var(--wfcc8-border); padding: 10px 0; }
.wfcc8-faq-q { font-size: 1.4rem; font-weight: 600; color: var(--wfcc8-text); margin-bottom: 4px; }
.wfcc8-faq-a { font-size: 1.3rem; color: var(--wfcc8-text-muted); line-height: 1.5; }

/* Badge */
.wfcc8-badge {
  display: inline-block; background: var(--wfcc8-accent); color: var(--wfcc8-bg);
  font-size: 1rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
}

/* Responsive game grid */
@media (min-width: 376px) {
  .wfcc8-game-grid { grid-template-columns: repeat(5, 1fr); }
}
