/**
 * xgamesapp.css - Core Stylesheet
 * All classes use w3f2c- prefix for namespace isolation
 * Color palette: #E9ECEF | #BAE1FF | #1C2833 | #FF6347
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --w3f2c-primary: #FF6347;
  --w3f2c-secondary: #BAE1FF;
  --w3f2c-bg: #1C2833;
  --w3f2c-bg-light: #2C3E50;
  --w3f2c-bg-card: #243342;
  --w3f2c-text: #E9ECEF;
  --w3f2c-text-muted: #A0AEC0;
  --w3f2c-accent: #FF6347;
  --w3f2c-border: #34495E;
  --w3f2c-gold: #F0C040;
  --w3f2c-green: #2ECC71;
  --w3f2c-radius: 8px;
}

/* Reset and base */
html { font-size: 62.5%; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--w3f2c-bg);
  color: var(--w3f2c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--w3f2c-secondary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w3f2c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3f2c-bg);
  border-bottom: 1px solid var(--w3f2c-border);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 5rem;
}
.w3f2c-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.w3f2c-header-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 4px;
}
.w3f2c-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3f2c-text);
  letter-spacing: 0.5px;
}
.w3f2c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w3f2c-header-menu-btn {
  background: none;
  border: none;
  color: var(--w3f2c-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}
.w3f2c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--w3f2c-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 3.4rem;
}
.w3f2c-btn-register {
  background: var(--w3f2c-primary);
  color: #fff;
}
.w3f2c-btn-register:hover {
  background: #E5553A;
  transform: scale(1.03);
}
.w3f2c-btn-login {
  background: var(--w3f2c-secondary);
  color: var(--w3f2c-bg);
}
.w3f2c-btn-login:hover {
  background: #9DD5F0;
  transform: scale(1.03);
}
.w3f2c-btn-promo {
  background: var(--w3f2c-primary);
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  border-radius: 2.5rem;
  display: block;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 280px;
  font-weight: 700;
}
.w3f2c-btn-promo:hover { background: #E5553A; }

/* Mobile menu overlay */
.w3f2c-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-out menu */
.w3f2c-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: var(--w3f2c-bg-light);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.w3f2c-mobile-menu-close {
  background: none;
  border: none;
  color: var(--w3f2c-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.w3f2c-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w3f2c-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--w3f2c-border);
}
.w3f2c-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--w3f2c-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w3f2c-border);
  transition: color 0.2s;
}
.w3f2c-mobile-menu a:hover { color: var(--w3f2c-primary); }

/* Main content area */
.w3f2c-main {
  padding-top: 5rem;
  padding-bottom: 1rem;
}

/* Carousel / Banner */
.w3f2c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w3f2c-radius) var(--w3f2c-radius);
}
.proc76-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.proc76-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}
.proc76-slide-active { display: block; }

/* Sections */
.w3f2c-section {
  padding: 1.5rem 1rem;
}
.w3f2c-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w3f2c-text);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--w3f2c-primary);
}
.w3f2c-section-title i {
  margin-right: 0.5rem;
  color: var(--w3f2c-primary);
}
.w3f2c-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w3f2c-secondary);
  margin: 1rem 0 0.5rem;
}

/* Game grid */
.w3f2c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.w3f2c-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--w3f2c-radius);
  overflow: hidden;
  background: var(--w3f2c-bg-card);
  padding: 0.4rem;
}
.w3f2c-game-item:hover { transform: scale(1.04); }
.w3f2c-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.w3f2c-game-item span {
  display: block;
  font-size: 1rem;
  color: var(--w3f2c-text-muted);
  padding: 0.2rem 0;
  line-height: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category header */
.w3f2c-cat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--w3f2c-border);
}
.w3f2c-cat-header i {
  font-size: 1.6rem;
  color: var(--w3f2c-primary);
}
.w3f2c-cat-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w3f2c-text);
}

/* Cards */
.w3f2c-card {
  background: var(--w3f2c-bg-card);
  border-radius: var(--w3f2c-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w3f2c-border);
}
.w3f2c-card h3 {
  font-size: 1.4rem;
  color: var(--w3f2c-primary);
  margin-bottom: 0.6rem;
}
.w3f2c-card p {
  font-size: 1.2rem;
  color: var(--w3f2c-text-muted);
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.w3f2c-testimonial {
  background: var(--w3f2c-bg-card);
  border-radius: var(--w3f2c-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w3f2c-primary);
}
.w3f2c-testimonial-name {
  font-weight: 700;
  color: var(--w3f2c-primary);
  font-size: 1.2rem;
}
.w3f2c-testimonial-text {
  font-size: 1.2rem;
  color: var(--w3f2c-text-muted);
  margin-top: 0.3rem;
}
.w3f2c-stars { color: var(--w3f2c-gold); font-size: 1.2rem; }

/* Winners */
.w3f2c-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--w3f2c-border);
}
.w3f2c-winner-avatar {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--w3f2c-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--w3f2c-gold);
}
.w3f2c-winner-info { flex: 1; }
.w3f2c-winner-name { font-size: 1.2rem; font-weight: 600; color: var(--w3f2c-text); }
.w3f2c-winner-game { font-size: 1rem; color: var(--w3f2c-text-muted); }
.w3f2c-winner-amount { font-size: 1.3rem; font-weight: 700; color: var(--w3f2c-green); }

/* Footer */
.w3f2c-footer {
  background: var(--w3f2c-bg-light);
  padding: 2rem 1rem;
  border-top: 1px solid var(--w3f2c-border);
}
.w3f2c-footer-desc {
  font-size: 1.2rem;
  color: var(--w3f2c-text-muted);
  line-height: 1.6rem;
  margin-bottom: 1rem;
}
.w3f2c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.w3f2c-footer-links a {
  padding: 0.4rem 1rem;
  background: var(--w3f2c-bg-card);
  border-radius: 1.5rem;
  font-size: 1.1rem;
  color: var(--w3f2c-text-muted);
  border: 1px solid var(--w3f2c-border);
  transition: all 0.2s;
}
.w3f2c-footer-links a:hover {
  color: var(--w3f2c-primary);
  border-color: var(--w3f2c-primary);
}
.w3f2c-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}
.w3f2c-footer-partners img {
  height: 2.4rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.w3f2c-footer-partners img:hover { opacity: 1; }
.w3f2c-footer-copy {
  text-align: center;
  font-size: 1rem;
  color: var(--w3f2c-text-muted);
  margin-top: 1rem;
}

/* Mobile bottom navigation */
.w3f2c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w3f2c-bg-light);
  border-top: 1px solid var(--w3f2c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 58px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.3rem;
}
.proc76-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--w3f2c-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.2rem;
  border-radius: 8px;
}
.proc76-bottom-nav-btn i,
.proc76-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 1px;
}
.proc76-bottom-nav-btn span {
  font-size: 10px;
  line-height: 12px;
}
.proc76-bottom-nav-btn:hover,
.proc76-nav-active {
  color: var(--w3f2c-primary);
  background: rgba(255,99,71,0.1);
}

/* Promo link text style */
.w3f2c-promo-text {
  color: var(--w3f2c-primary);
  font-weight: 700;
  cursor: pointer;
}
.w3f2c-promo-text:hover { text-decoration: underline; }

/* Payment icons */
.w3f2c-payment-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.w3f2c-payment-item {
  background: var(--w3f2c-bg-card);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--w3f2c-text-muted);
  border: 1px solid var(--w3f2c-border);
}

/* Achievement badge */
.w3f2c-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.2rem;
}
.w3f2c-badge-gold { background: var(--w3f2c-gold); color: #1C2833; }
.w3f2c-badge-green { background: var(--w3f2c-green); color: #fff; }
.w3f2c-badge-red { background: var(--w3f2c-primary); color: #fff; }

/* Content list */
.w3f2c-list { list-style: none; padding: 0; }
.w3f2c-list li {
  padding: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--w3f2c-text-muted);
  border-bottom: 1px solid var(--w3f2c-border);
  padding-left: 1.5rem;
  position: relative;
}
.w3f2c-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--w3f2c-primary);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Responsive - desktop */
@media (min-width: 769px) {
  .w3f2c-bottom-nav { display: none; }
  body { max-width: 480px; }
}
@media (max-width: 768px) {
  .w3f2c-main { padding-bottom: 70px; }
}
