/**
 * XGame Main Stylesheet
 * Class prefix: wf57c-
 * Color palette: #5D5D5D | #3A3A3A | #696969 | #8FBC8F | #EEEEEE | #A9A9A9
 * Dark backgrounds, light text for mobile readability
 */

/* CSS Variables */
:root {
  --wf57c-primary: #5D5D5D;
  --wf57c-bg-dark: #3A3A3A;
  --wf57c-bg-medium: #696969;
  --wf57c-accent: #8FBC8F;
  --wf57c-text-light: #EEEEEE;
  --wf57c-text-muted: #A9A9A9;
  --wf57c-radius: 8px;
  --wf57c-radius-lg: 12px;
  --wf57c-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --wf57c-transition: all 0.3s ease;
}

/* 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, sans-serif;
  background: var(--wf57c-bg-dark);
  color: var(--wf57c-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wf57c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.wf57c-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.wf57c-wrapper { padding: 1.6rem 0; }
.wf57c-grid { display: grid; gap: 1rem; }

/* Header */
.wf57c-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: var(--wf57c-bg-dark); border-bottom: 1px solid #555;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
}
.wf57c-header-left { display: flex; align-items: center; gap: 0.8rem; }
.wf57c-logo { width: 28px; height: 28px; border-radius: 4px; }
.wf57c-site-name { font-size: 1.6rem; font-weight: 700; color: var(--wf57c-accent); letter-spacing: 0.5px; }
.wf57c-header-right { display: flex; align-items: center; gap: 0.6rem; }
.wf57c-btn-register, .wf57c-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--wf57c-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--wf57c-transition);
  min-height: 36px;
}
.wf57c-btn-register {
  background: var(--wf57c-accent); color: var(--wf57c-bg-dark);
}
.wf57c-btn-register:hover { background: #7dce7d; transform: scale(1.05); }
.wf57c-btn-login {
  background: transparent; color: var(--wf57c-accent);
  border: 1px solid var(--wf57c-accent);
}
.wf57c-btn-login:hover { background: rgba(143,188,143,0.15); }

/* Menu Toggle */
.wf57c-menu-toggle {
  background: none; border: none; color: var(--wf57c-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.wf57c-mobile-menu {
  position: fixed; top: 0; left: 0; width: 75%; max-width: 300px;
  height: 100vh; background: var(--wf57c-bg-dark);
  transform: translateX(-100%); transition: transform 0.3s ease;
  z-index: 9999; padding: 2rem 1.6rem;
  border-right: 1px solid #555;
}
.wf57c-mobile-menu.wf57c-menu-open { transform: translateX(0); }
.wf57c-menu-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.wf57c-menu-header img { width: 32px; height: 32px; border-radius: 4px; }
.wf57c-menu-header span { font-size: 1.8rem; font-weight: 700; color: var(--wf57c-accent); }
.wf57c-menu-close {
  background: none; border: none; color: var(--wf57c-text-muted);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.wf57c-menu-links { list-style: none; }
.wf57c-menu-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.wf57c-menu-links a {
  display: block; padding: 1.2rem 0; color: var(--wf57c-text-light);
  font-size: 1.4rem; transition: var(--wf57c-transition);
}
.wf57c-menu-links a:hover { color: var(--wf57c-accent); padding-left: 0.5rem; text-decoration: none; }

/* Menu Overlay */
.wf57c-menu-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* Carousel */
.wf57c-carousel { position: relative; overflow: hidden; margin-top: 56px; border-radius: 0 0 var(--wf57c-radius-lg) var(--wf57c-radius-lg); }
.wf57c-slide { display: none; cursor: pointer; }
.wf57c-slide img { width: 100%; height: 180px; object-fit: cover; }
.wf57c-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.wf57c-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wf57c-text-muted); cursor: pointer;
  transition: var(--wf57c-transition); border: none;
}
.wf57c-dot-active { background: var(--wf57c-accent); transform: scale(1.3); }

/* Section titles */
.wf57c-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--wf57c-text-light);
  margin: 2rem 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wf57c-accent); display: inline-block;
}
.wf57c-section-subtitle {
  font-size: 1.4rem; color: var(--wf57c-text-muted); margin-bottom: 1.2rem;
}

/* Game Grid */
.wf57c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0.5rem 0;
}
.wf57c-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--wf57c-transition);
  border-radius: var(--wf57c-radius); padding: 0.5rem;
}
.wf57c-game-item:hover { transform: translateY(-2px); background: rgba(143,188,143,0.1); }
.wf57c-game-item img {
  width: 64px; height: 64px; border-radius: var(--wf57c-radius);
  margin-bottom: 0.4rem; object-fit: cover;
}
.wf57c-game-item span {
  font-size: 1rem; color: var(--wf57c-text-muted); text-align: center;
  line-height: 1.2rem; max-width: 72px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Category header */
.wf57c-cat-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.6rem 0 0.8rem; padding: 0.6rem 0.8rem;
  background: rgba(143,188,143,0.1); border-left: 3px solid var(--wf57c-accent);
  border-radius: 0 var(--wf57c-radius) var(--wf57c-radius) 0;
}
.wf57c-cat-header i, .wf57c-cat-header .material-icons { font-size: 2rem; color: var(--wf57c-accent); }
.wf57c-cat-header h2 { font-size: 1.5rem; font-weight: 600; color: var(--wf57c-text-light); }

/* Content blocks */
.wf57c-content-block {
  background: rgba(93,93,93,0.3); border-radius: var(--wf57c-radius-lg);
  padding: 1.6rem; margin: 1.2rem 0;
}
.wf57c-content-block h3 {
  font-size: 1.5rem; color: var(--wf57c-accent); margin-bottom: 0.8rem;
}
.wf57c-content-block p {
  font-size: 1.3rem; color: var(--wf57c-text-light); line-height: 1.8rem; margin-bottom: 0.8rem;
}
.wf57c-content-block ul { list-style: none; padding: 0; }
.wf57c-content-block li {
  font-size: 1.3rem; color: var(--wf57c-text-light); padding: 0.4rem 0;
  padding-left: 1.4rem; position: relative;
}
.wf57c-content-block li::before {
  content: ''; position: absolute; left: 0; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--wf57c-accent);
}

/* Promo CTA */
.wf57c-cta {
  display: inline-block; padding: 1rem 2.4rem;
  background: var(--wf57c-accent); color: var(--wf57c-bg-dark);
  font-size: 1.4rem; font-weight: 700; border-radius: var(--wf57c-radius-lg);
  cursor: pointer; border: none; transition: var(--wf57c-transition);
  text-align: center;
}
.wf57c-cta:hover { background: #7dce7d; transform: scale(1.05); text-decoration: none; }
.wf57c-cta-outline {
  display: inline-block; padding: 0.8rem 2rem;
  border: 2px solid var(--wf57c-accent); color: var(--wf57c-accent);
  font-size: 1.3rem; font-weight: 600; border-radius: var(--wf57c-radius-lg);
  cursor: pointer; background: transparent; transition: var(--wf57c-transition);
}
.wf57c-cta-outline:hover { background: rgba(143,188,143,0.15); }

/* Testimonial cards */
.wf57c-testimonial {
  background: rgba(93,93,93,0.4); border-radius: var(--wf57c-radius-lg);
  padding: 1.2rem; margin: 0.8rem 0; border-left: 3px solid var(--wf57c-accent);
}
.wf57c-testimonial-name { font-size: 1.3rem; font-weight: 600; color: var(--wf57c-accent); }
.wf57c-testimonial-text { font-size: 1.2rem; color: var(--wf57c-text-light); margin-top: 0.4rem; font-style: italic; }

/* Winner badge */
.wf57c-winner {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(143,188,143,0.1); border-radius: var(--wf57c-radius);
  padding: 0.8rem; margin: 0.5rem 0;
}
.wf57c-winner-name { font-size: 1.2rem; color: var(--wf57c-text-light); font-weight: 600; }
.wf57c-winner-amount { font-size: 1.3rem; color: var(--wf57c-accent); font-weight: 700; }
.wf57c-winner-game { font-size: 1rem; color: var(--wf57c-text-muted); }

/* Payment row */
.wf57c-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin: 1rem 0;
}
.wf57c-payment-item {
  background: rgba(255,255,255,0.08); border-radius: var(--wf57c-radius);
  padding: 0.6rem 1.2rem; font-size: 1.2rem; color: var(--wf57c-text-light);
}

/* Footer */
.wf57c-footer {
  background: #2A2A2A; padding: 2rem 1.2rem 8rem;
  border-top: 1px solid #444;
}
.wf57c-footer-brand { font-size: 1.3rem; color: var(--wf57c-text-muted); line-height: 1.8rem; margin-bottom: 1.2rem; }
.wf57c-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.wf57c-footer-link {
  padding: 0.4rem 1rem; background: rgba(143,188,143,0.15);
  border-radius: var(--wf57c-radius); font-size: 1.1rem;
  color: var(--wf57c-accent); transition: var(--wf57c-transition);
}
.wf57c-footer-link:hover { background: rgba(143,188,143,0.3); text-decoration: none; }
.wf57c-footer-copy { font-size: 1.1rem; color: var(--wf57c-text-muted); margin-top: 1.2rem; text-align: center; }
.wf57c-footer-partners {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin: 1.2rem 0; opacity: 0.6;
}
.wf57c-footer-partners span { font-size: 1rem; color: var(--wf57c-text-muted); }

/* Bottom Navigation */
.wf57c-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: #2A2A2A; border-top: 1px solid #555;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.4rem;
}
.wf57c-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--wf57c-text-muted); transition: var(--wf57c-transition);
  border-radius: var(--wf57c-radius);
}
.wf57c-bottom-btn i, .wf57c-bottom-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.wf57c-bottom-btn span { font-size: 1rem; }
.wf57c-bottom-btn:hover, .wf57c-bottom-active {
  color: var(--wf57c-accent); transform: scale(1.08);
}
.wf57c-bottom-active::after {
  content: ''; position: absolute; bottom: 2px;
  width: 20px; height: 3px; background: var(--wf57c-accent);
  border-radius: 2px;
}

/* Back to Top */
.wf57c-back-top {
  display: none; position: fixed; bottom: 72px; right: 1.2rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--wf57c-accent); color: var(--wf57c-bg-dark);
  border: none; font-size: 1.8rem; cursor: pointer;
  align-items: center; justify-content: center;
  z-index: 999; box-shadow: var(--wf57c-shadow);
}
.wf57c-back-top:hover { transform: scale(1.1); }

/* FAQ Accordion */
.wf57c-faq-item { margin: 0.8rem 0; border-radius: var(--wf57c-radius); overflow: hidden; }
.wf57c-faq-q {
  background: rgba(93,93,93,0.5); padding: 1rem 1.2rem;
  font-size: 1.3rem; color: var(--wf57c-text-light); font-weight: 600;
  cursor: pointer; border: none; width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
}
.wf57c-faq-q::after { content: '+'; font-size: 1.6rem; color: var(--wf57c-accent); }
.wf57c-faq-a {
  background: rgba(58,58,58,0.5); padding: 1rem 1.2rem;
  font-size: 1.2rem; color: var(--wf57c-text-muted); line-height: 1.6rem;
  display: none;
}
.wf57c-faq-open .wf57c-faq-a { display: block; }
.wf57c-faq-open .wf57c-faq-q::after { content: '-'; }

/* Feature list */
.wf57c-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.wf57c-feature-card {
  background: rgba(93,93,93,0.3); border-radius: var(--wf57c-radius);
  padding: 1rem; text-align: center;
}
.wf57c-feature-card i { font-size: 2.4rem; color: var(--wf57c-accent); margin-bottom: 0.4rem; }
.wf57c-feature-card h4 { font-size: 1.2rem; color: var(--wf57c-text-light); margin-bottom: 0.3rem; }
.wf57c-feature-card p { font-size: 1rem; color: var(--wf57c-text-muted); }

/* Promo link styling */
.wf57c-promo-link {
  color: var(--wf57c-accent); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--wf57c-accent);
}
.wf57c-promo-link:hover { color: #7dce7d; text-decoration: none; }

/* Internal link */
.wf57c-internal-link { color: var(--wf57c-accent); font-weight: 600; }
.wf57c-internal-link:hover { text-decoration: underline; }

/* Responsive - Desktop */
@media (min-width: 769px) {
  .wf57c-bottom-nav { display: none; }
  .wf57c-back-top { right: calc(50% - 200px); }
  .wf57c-footer { padding-bottom: 2rem; }
  body { max-width: 430px; }
}

/* Responsive - Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .wf57c-footer { padding-bottom: 8rem; }
}
