/**
 * PlaytimeGaming Theme Stylesheet
 * File: css/theme.css
 * Prefix: w040f-
 * Colors: #8FBC8F | #00FF00 | #0E1621 | #2F2F2F | #32CD32
 */

:root {
  --w040f-primary: #32CD32;
  --w040f-primary-light: #8FBC8F;
  --w040f-accent: #00FF00;
  --w040f-bg-dark: #0E1621;
  --w040f-bg-card: #2F2F2F;
  --w040f-text: #E8E8E8;
  --w040f-text-muted: #A0A0A0;
  --w040f-border: #3A4A5A;
  --w040f-success: #32CD32;
  --w040f-warning: #FFD700;
  --w040f-radius: 0.8rem;
  --w040f-radius-sm: 0.4rem;
  --w040f-shadow: 0 0.2rem 1rem rgba(0,0,0,0.4);
  --w040f-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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: var(--w040f-text);
  background: var(--w040f-bg-dark);
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w040f-primary); text-decoration: none; }
a:hover { color: var(--w040f-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.w040f-container { width: 100%; padding: 0 1.2rem; margin: 0 auto; }
.w040f-wrapper { padding: 1rem 0; }

/* ===== HEADER ===== */
.w040f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0E1621 0%, #1A2733 100%);
  border-bottom: 0.2rem solid var(--w040f-primary);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0.3rem 1rem rgba(0,0,0,0.5);
}
.w040f-header-left { display: flex; align-items: center; gap: 0.6rem; }
.w040f-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 0.15rem solid var(--w040f-primary);
  object-fit: contain;
}
.w040f-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w040f-primary);
  letter-spacing: 0.05rem;
}
.w040f-header-right { display: flex; align-items: center; gap: 0.5rem; }
.w040f-btn-register {
  background: linear-gradient(135deg, #32CD32, #00FF00);
  color: #0E1621;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: var(--w040f-transition);
  white-space: nowrap;
}
.w040f-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 1rem rgba(50,205,50,0.5); }
.w040f-btn-login {
  background: transparent;
  color: var(--w040f-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 2rem;
  border: 0.15rem solid var(--w040f-primary);
  cursor: pointer;
  transition: var(--w040f-transition);
  white-space: nowrap;
}
.w040f-btn-login:hover { background: rgba(50,205,50,0.1); }
.w040f-menu-toggle {
  background: none;
  border: none;
  color: var(--w040f-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.w040f-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
}
.w040f-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #0E1621 0%, #162233 100%);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 0;
}
.w040f-menu-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 0.1rem solid var(--w040f-border);
  margin-bottom: 1rem;
}
.w040f-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--w040f-text-muted);
  font-size: 2rem;
  cursor: pointer;
}
.w040f-menu-nav { list-style: none; }
.w040f-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  color: var(--w040f-text);
  font-size: 1.4rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.05);
  transition: var(--w040f-transition);
}
.w040f-menu-nav li a:hover {
  background: rgba(50,205,50,0.1);
  color: var(--w040f-primary);
}

/* ===== MAIN CONTENT ===== */
.w040f-main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.w040f-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}
.w040f-carousel-inner { position: relative; width: 100%; height: 18rem; }
.w040f-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}
.w040f-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w040f-slide-active { opacity: 1; }
.w040f-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.w040f-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--w040f-transition);
}
.w040f-carousel-dot-active { background: var(--w040f-primary); }

/* ===== SECTION STYLES ===== */
.w040f-section {
  padding: 2rem 1.2rem;
  border-bottom: 0.1rem solid rgba(255,255,255,0.05);
}
.w040f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w040f-primary);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 0.3rem solid var(--w040f-accent);
}
.w040f-section-text {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--w040f-text);
  margin-bottom: 1rem;
}

/* ===== GAME GRID ===== */
.w040f-game-category { margin-bottom: 2rem; }
.w040f-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w040f-accent);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.w040f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.w040f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--w040f-transition);
  border-radius: var(--w040f-radius-sm);
  padding: 0.4rem;
}
.w040f-game-item:hover {
  background: rgba(50,205,50,0.1);
  transform: translateY(-0.2rem);
}
.w040f-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w040f-radius-sm);
  object-fit: cover;
  border: 0.1rem solid var(--w040f-border);
}
.w040f-game-name {
  font-size: 1.05rem;
  color: var(--w040f-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== CARDS ===== */
.w040f-card {
  background: var(--w040f-bg-card);
  border-radius: var(--w040f-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--w040f-shadow);
}
.w040f-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w040f-primary);
  margin-bottom: 0.8rem;
}

/* ===== BUTTONS ===== */
.w040f-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--w040f-transition);
  border: none;
}
.w040f-btn-primary {
  background: linear-gradient(135deg, #32CD32, #00FF00);
  color: #0E1621;
}
.w040f-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1.5rem rgba(50,205,50,0.5);
}
.w040f-btn-outline {
  background: transparent;
  color: var(--w040f-primary);
  border: 0.15rem solid var(--w040f-primary);
}
.w040f-btn-outline:hover { background: rgba(50,205,50,0.1); }

/* ===== PROMO LINKS ===== */
.w040f-promo-link {
  color: var(--w040f-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--w040f-transition);
}
.w040f-promo-link:hover { color: var(--w040f-primary); }

/* ===== RTP TABLE ===== */
.w040f-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.w040f-rtp-item {
  background: rgba(50,205,50,0.05);
  border: 0.1rem solid var(--w040f-border);
  border-radius: var(--w040f-radius-sm);
  padding: 0.6rem;
  text-align: center;
}
.w040f-rtp-name { font-size: 1.1rem; color: var(--w040f-text-muted); }
.w040f-rtp-value { font-size: 1.4rem; font-weight: 700; color: var(--w040f-primary); }

/* ===== FOOTER ===== */
.w040f-footer {
  background: linear-gradient(180deg, #0E1621 0%, #080D14 100%);
  padding: 2rem 1.2rem 8rem;
  border-top: 0.2rem solid var(--w040f-primary);
}
.w040f-footer-brand {
  font-size: 1.3rem;
  color: var(--w040f-text-muted);
  line-height: 2rem;
  margin-bottom: 1.5rem;
}
.w040f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.w040f-footer-link {
  font-size: 1.2rem;
  color: var(--w040f-primary-light);
  padding: 0.3rem 0.8rem;
  border: 0.1rem solid var(--w040f-border);
  border-radius: 2rem;
  transition: var(--w040f-transition);
}
.w040f-footer-link:hover {
  background: rgba(50,205,50,0.1);
  color: var(--w040f-accent);
}
.w040f-footer-copyright {
  font-size: 1.1rem;
  color: var(--w040f-text-muted);
  text-align: center;
  border-top: 0.1rem solid var(--w040f-border);
  padding-top: 1rem;
}

/* ===== BOTTOM NAV ===== */
.w040f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #0E1621 0%, #1A2733 100%);
  border-top: 0.15rem solid var(--w040f-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0 0.3rem;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.5);
}
.w040f-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--w040f-text-muted);
  cursor: pointer;
  transition: var(--w040f-transition);
  border-radius: 0.8rem;
  padding: 0.3rem 0.5rem;
  gap: 0.2rem;
}
.w040f-bottom-nav-btn:hover {
  color: var(--w040f-primary);
  background: rgba(50,205,50,0.08);
}
.w040f-bottom-nav-btn:active { transform: scale(0.92); }
.w040f-bottom-nav-active {
  color: var(--w040f-accent) !important;
  background: rgba(50,205,50,0.12);
}
.w040f-bottom-nav-icon { font-size: 2.2rem; line-height: 1; }
.w040f-bottom-nav-label { font-size: 1rem; font-weight: 500; }

/* ===== DESKTOP HIDE ===== */
@media (min-width: 769px) {
  .w040f-bottom-nav { display: none; }
}

/* ===== MOBILE PADDING ===== */
@media (max-width: 768px) {
  .w040f-main { padding-bottom: 7rem; }
}

/* ===== UTILITY ===== */
.w040f-text-center { text-align: center; }
.w040f-mt-1 { margin-top: 0.5rem; }
.w040f-mt-2 { margin-top: 1rem; }
.w040f-mb-1 { margin-bottom: 0.5rem; }
.w040f-mb-2 { margin-bottom: 1rem; }
.w040f-flex { display: flex; }
.w040f-flex-center { display: flex; align-items: center; justify-content: center; }
.w040f-gap-1 { gap: 0.5rem; }
.w040f-gap-2 { gap: 1rem; }
.w040f-img-responsive { width: 100%; border-radius: var(--w040f-radius); }

/* ===== FAQ ACCORDION ===== */
.w040f-faq-item {
  background: var(--w040f-bg-card);
  border-radius: var(--w040f-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.w040f-faq-q {
  padding: 1rem;
  font-weight: 600;
  color: var(--w040f-primary);
  font-size: 1.3rem;
}
.w040f-faq-a {
  padding: 0 1rem 1rem;
  font-size: 1.2rem;
  color: var(--w040f-text);
  line-height: 1.8rem;
}

/* ===== TESTIMONIAL ===== */
.w040f-testimonial {
  background: var(--w040f-bg-card);
  border-radius: var(--w040f-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--w040f-primary);
}
.w040f-testimonial-text {
  font-size: 1.2rem;
  color: var(--w040f-text);
  line-height: 1.8rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.w040f-testimonial-author {
  font-size: 1.1rem;
  color: var(--w040f-primary-light);
  font-weight: 600;
}

/* ===== WINNER SHOWCASE ===== */
.w040f-winner-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 0.1rem solid rgba(255,255,255,0.05);
}
.w040f-winner-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--w040f-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w040f-bg-dark);
  font-weight: 700;
  font-size: 1.2rem;
}
.w040f-winner-info { flex: 1; }
.w040f-winner-name { font-size: 1.2rem; color: var(--w040f-text); font-weight: 600; }
.w040f-winner-game { font-size: 1rem; color: var(--w040f-text-muted); }
.w040f-winner-amount { font-size: 1.3rem; color: var(--w040f-accent); font-weight: 700; }

/* ===== PAYMENT METHODS ===== */
.w040f-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.w040f-payment-item {
  background: var(--w040f-bg-card);
  border: 0.1rem solid var(--w040f-border);
  border-radius: var(--w040f-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--w040f-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== APP DOWNLOAD CTA ===== */
.w040f-app-cta {
  background: linear-gradient(135deg, rgba(50,205,50,0.15), rgba(0,255,0,0.05));
  border: 0.15rem solid var(--w040f-primary);
  border-radius: var(--w040f-radius);
  padding: 1.5rem;
  text-align: center;
}
.w040f-app-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w040f-accent);
  margin-bottom: 0.8rem;
}
.w040f-app-cta-text {
  font-size: 1.2rem;
  color: var(--w040f-text);
  margin-bottom: 1rem;
  line-height: 1.8rem;
}

/* ===== ANIMATIONS ===== */
@keyframes w040f-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.w040f-animate-pulse { animation: w040f-pulse 2s infinite; }
