/**
 * layout-03fd.css - Core Styles for 2229 Gaming Platform
 * All classes use w03fd- prefix for namespace isolation
 * Color Palette: #34495E (dark bg) | #8B008B (accent/purple)
 */

/* CSS Variables */
:root {
  --w03fd-primary: #8B008B;
  --w03fd-primary-light: #A020A0;
  --w03fd-primary-dark: #6B006B;
  --w03fd-bg: #34495E;
  --w03fd-bg-dark: #2C3E50;
  --w03fd-bg-light: #3D566E;
  --w03fd-text: #F0F0F0;
  --w03fd-text-muted: #BDC3C7;
  --w03fd-accent: #FFD700;
  --w03fd-card-bg: #2C3E50;
  --w03fd-border: #4A6580;
  --w03fd-success: #27AE60;
  --w03fd-danger: #E74C3C;
  --w03fd-gradient: linear-gradient(135deg, #8B008B, #34495E);
}

/* Reset and Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--w03fd-bg);
  color: var(--w03fd-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w03fd-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--w03fd-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.w03fd-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.w03fd-wrapper { padding-top: 5.6rem; }

/* Header */
.w03fd-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2C3E50, #34495E);
  border-bottom: 1px solid var(--w03fd-border);
  height: 5.6rem; display: flex; align-items: center;
  padding: 0 1.2rem; transition: box-shadow 0.3s;
}
.w03fd-header-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.w03fd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 430px; margin: 0 auto;
}
.w03fd-logo-area { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.w03fd-logo-area img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.w03fd-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--w03fd-accent); letter-spacing: 0.05rem; }
.w03fd-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w03fd-btn-register {
  background: var(--w03fd-primary); color: #fff; border: none;
  padding: 0.6rem 1.4rem; border-radius: 2rem; font-size: 1.3rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  min-height: 3.6rem;
}
.w03fd-btn-register:hover { background: var(--w03fd-primary-light); transform: scale(1.03); }
.w03fd-btn-login {
  background: transparent; color: var(--w03fd-accent); border: 1.5px solid var(--w03fd-accent);
  padding: 0.6rem 1.4rem; border-radius: 2rem; font-size: 1.3rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  min-height: 3.6rem;
}
.w03fd-btn-login:hover { background: rgba(255,215,0,0.1); }
.w03fd-menu-btn {
  background: none; border: none; color: var(--w03fd-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu */
.w03fd-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.w03fd-overlay-active { opacity: 1; pointer-events: auto; }
.w03fd-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--w03fd-bg-dark); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 0; overflow-y: auto;
}
.w03fd-menu-active { right: 0; }
.w03fd-menu-close {
  background: none; border: none; color: var(--w03fd-text);
  font-size: 2.4rem; cursor: pointer; padding: 0.8rem 1.2rem;
  display: block; margin-left: auto;
}
.w03fd-mobile-menu nav a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.6rem; color: var(--w03fd-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--w03fd-border);
  transition: background 0.2s;
}
.w03fd-mobile-menu nav a:hover { background: var(--w03fd-bg-light); color: var(--w03fd-accent); }
.w03fd-mobile-menu nav a i { font-size: 1.8rem; width: 2.4rem; text-align: center; }

/* Carousel */
.w03fd-carousel { position: relative; overflow: hidden; border-radius: 1rem; margin: 1rem 0; }
.w03fd-carousel-track { display: flex; transition: transform 0.5s ease; }
.w03fd-slide {
  min-width: 100%; opacity: 0; transition: opacity 0.5s; position: relative;
}
.w03fd-slide-active { opacity: 1; }
.w03fd-slide img { width: 100%; height: 18rem; object-fit: cover; border-radius: 1rem; }
.w03fd-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 2;
}
.w03fd-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none;
  transition: all 0.3s;
}
.w03fd-dot-active { background: var(--w03fd-accent); transform: scale(1.3); }

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

/* Game Grid */
.w03fd-game-category { margin: 1.5rem 0; }
.w03fd-category-label {
  font-size: 1.5rem; font-weight: 600; color: var(--w03fd-primary-light);
  margin-bottom: 0.8rem; padding-left: 0.4rem;
  border-left: 3px solid var(--w03fd-primary);
}
.w03fd-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w03fd-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s; padding: 0.4rem;
  border-radius: 0.8rem;
}
.w03fd-game-item:hover { transform: translateY(-2px); background: rgba(139,0,139,0.15); }
.w03fd-game-item img {
  width: 6.4rem; height: 6.4rem; border-radius: 0.8rem;
  object-fit: cover; border: 1.5px solid var(--w03fd-border);
}
.w03fd-game-name {
  font-size: 1.05rem; color: var(--w03fd-text-muted); text-align: center;
  margin-top: 0.3rem; line-height: 1.2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 6.8rem;
}

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

/* Promo Button */
.w03fd-promo-btn {
  display: inline-block; background: var(--w03fd-primary);
  color: #fff; padding: 1rem 2.4rem; border-radius: 2.5rem;
  font-size: 1.5rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.3s; text-align: center;
  min-height: 4.4rem;
}
.w03fd-promo-btn:hover { background: var(--w03fd-primary-light); transform: scale(1.04); box-shadow: 0 4px 15px rgba(139,0,139,0.4); }
.w03fd-promo-link {
  color: var(--w03fd-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.w03fd-promo-link:hover { color: var(--w03fd-primary-light); }

/* Stats Bar */
.w03fd-stats-bar {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  background: var(--w03fd-bg-dark); border-radius: 1rem;
  padding: 1.2rem; margin: 1rem 0; gap: 0.8rem;
}
.w03fd-stat-item { text-align: center; flex: 1; min-width: 8rem; }
.w03fd-stat-num { font-size: 2rem; font-weight: 700; color: var(--w03fd-accent); }
.w03fd-stat-label { font-size: 1.1rem; color: var(--w03fd-text-muted); margin-top: 0.2rem; }

/* Testimonials */
.w03fd-testimonial {
  background: var(--w03fd-bg-light); border-radius: 1rem;
  padding: 1.2rem; margin: 0.8rem 0; border-left: 3px solid var(--w03fd-primary);
}
.w03fd-testimonial p { color: var(--w03fd-text-muted); font-style: italic; margin-bottom: 0.4rem; }
.w03fd-testimonial-author { font-size: 1.2rem; color: var(--w03fd-accent); font-weight: 600; }

/* Winner Showcase */
.w03fd-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w03fd-winner-name { font-size: 1.2rem; color: var(--w03fd-text-muted); }
.w03fd-winner-game { font-size: 1.1rem; color: var(--w03fd-primary-light); }
.w03fd-winner-amount { font-size: 1.3rem; color: var(--w03fd-accent); font-weight: 700; }

/* Payment Methods */
.w03fd-payment-grid {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin: 1rem 0;
}
.w03fd-payment-item {
  background: var(--w03fd-bg-light); padding: 0.8rem 1.2rem;
  border-radius: 0.8rem; font-size: 1.2rem; color: var(--w03fd-text-muted);
  border: 1px solid var(--w03fd-border);
}

/* Footer */
.w03fd-footer {
  background: var(--w03fd-bg-dark); padding: 2rem 1.2rem;
  border-top: 1px solid var(--w03fd-border); margin-top: 2rem;
}
.w03fd-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.w03fd-footer-brand p { color: var(--w03fd-text-muted); font-size: 1.2rem; line-height: 1.6; }
.w03fd-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin-bottom: 1.6rem;
}
.w03fd-footer-links a {
  background: var(--w03fd-primary); color: #fff; padding: 0.6rem 1.2rem;
  border-radius: 2rem; font-size: 1.1rem; font-weight: 500;
  transition: all 0.2s; display: inline-flex; align-items: center;
}
.w03fd-footer-links a:hover { background: var(--w03fd-primary-light); }
.w03fd-footer-copy { text-align: center; color: var(--w03fd-text-muted); font-size: 1.1rem; }

/* Bottom Navigation (Mobile) */
.w03fd-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2C3E50, #1A252F);
  border-top: 1px solid var(--w03fd-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.4rem;
}
.w03fd-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--w03fd-text-muted); cursor: pointer;
  min-width: 6rem; min-height: 5.2rem; padding: 0.4rem;
  transition: all 0.2s; border-radius: 0.8rem;
}
.w03fd-nav-btn:hover, .w03fd-nav-btn:focus { color: var(--w03fd-accent); background: rgba(139,0,139,0.12); }
.w03fd-nav-btn i, .w03fd-nav-btn .material-icons-outlined { font-size: 2.4rem; transition: transform 0.2s; }
.w03fd-nav-btn:hover i, .w03fd-nav-btn:hover .material-icons-outlined { transform: scale(1.1); }
.w03fd-nav-label { font-size: 1rem; margin-top: 0.2rem; }
.w03fd-nav-btn-active { color: var(--w03fd-accent); }
.w03fd-nav-btn-active i { color: var(--w03fd-accent); }

/* FAQ Section */
.w03fd-faq-item { margin: 0.8rem 0; }
.w03fd-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--w03fd-accent);
  margin-bottom: 0.3rem;
}
.w03fd-faq-a { font-size: 1.2rem; color: var(--w03fd-text-muted); line-height: 1.5; padding-left: 1rem; }

/* App Download CTA */
.w03fd-app-cta {
  background: var(--w03fd-gradient); border-radius: 1.2rem;
  padding: 2rem; text-align: center; margin: 1.5rem 0;
}
.w03fd-app-cta h3 { font-size: 1.8rem; color: #fff; margin-bottom: 0.8rem; }
.w03fd-app-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.2rem; }

/* Internal Link Styles */
.w03fd-internal-link {
  color: var(--w03fd-accent); text-decoration: underline;
  font-weight: 500; transition: color 0.2s;
}
.w03fd-internal-link:hover { color: var(--w03fd-primary-light); }

/* Utility Classes */
.w03fd-text-center { text-align: center; }
.w03fd-mt-1 { margin-top: 1rem; }
.w03fd-mt-2 { margin-top: 2rem; }
.w03fd-mb-1 { margin-bottom: 1rem; }
.w03fd-mb-2 { margin-bottom: 2rem; }
.w03fd-hidden { display: none; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w03fd-bottom-nav { display: none; }
}

/* Mobile: add bottom padding for nav */
@media (max-width: 768px) {
  .w03fd-main-content { padding-bottom: 7.5rem; }
}

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .w03fd-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .w03fd-game-item img { width: 5.6rem; height: 5.6rem; }
  .w03fd-header { padding: 0 0.8rem; }
}
