/*
 * JiliPhApp Core Stylesheet
 * CSS class prefix: wac9f-
 * Color palette: #333333 (dark bg), #D3D3D3 (light text), #E0FFFF (accent)
 * Mobile-first: max-width 430px, rem units, 62.5% root font
 */

/* === CSS Variables === */
:root {
  --wac9f-primary: #333333;
  --wac9f-secondary: #D3D3D3;
  --wac9f-accent: #E0FFFF;
  --wac9f-bg-dark: #1a1a2e;
  --wac9f-bg-card: #252540;
  --wac9f-bg-card-alt: #2d2d4a;
  --wac9f-text-light: #f0f0f0;
  --wac9f-text-muted: #a0a0b8;
  --wac9f-highlight: #00e5ff;
  --wac9f-gold: #ffd700;
  --wac9f-green: #4caf50;
  --wac9f-red: #ff4444;
  --wac9f-gradient-main: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --wac9f-gradient-card: linear-gradient(145deg, #252540, #1e1e38);
  --wac9f-gradient-btn: linear-gradient(135deg, #00e5ff, #0091ea);
  --wac9f-gradient-gold: linear-gradient(135deg, #ffd700, #ff8f00);
  --wac9f-shadow: 0 4px 15px rgba(0,0,0,0.3);
  --wac9f-radius: 10px;
  --wac9f-radius-sm: 6px;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--wac9f-gradient-main);
  color: var(--wac9f-text-light);
  line-height: 1.5rem;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--wac9f-highlight);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--wac9f-accent); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Header === */
.wac9f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wac9f-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wac9f-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.wac9f-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--wac9f-gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.wac9f-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wac9f-btn-register, .wac9f-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}

.wac9f-btn-register {
  background: var(--wac9f-gradient-btn);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}

.wac9f-btn-register:active {
  transform: scale(0.95);
}

.wac9f-btn-login {
  background: var(--wac9f-gradient-gold);
  color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.wac9f-btn-login:active {
  transform: scale(0.95);
}

.wac9f-menu-toggle {
  background: none;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--wac9f-highlight);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background 0.2s;
}

.wac9f-menu-toggle:active {
  background: rgba(0, 229, 255, 0.1);
}

/* === Mobile Menu === */
.wac9f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: #1a1a2e;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  border-left: 1px solid rgba(0, 229, 255, 0.15);
  overflow-y: auto;
}

.wac9f-menu-active {
  right: 0;
}

.wac9f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.wac9f-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.wac9f-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--wac9f-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.wac9f-menu-list {
  list-style: none;
}

.wac9f-menu-list li {
  margin-bottom: 0.3rem;
}

.wac9f-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--wac9f-radius-sm);
  color: var(--wac9f-text-light);
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s;
}

.wac9f-menu-list a:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--wac9f-highlight);
}

.wac9f-menu-list .material-icons,
.wac9f-menu-list .fas,
.wac9f-menu-list .bi {
  font-size: 1.8rem;
  color: var(--wac9f-highlight);
}

/* === Main Content === */
.wac9f-main {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .wac9f-main {
    padding-bottom: 80px;
  }
}

.wac9f-container {
  padding: 0 1rem;
}

/* === Carousel === */
.wac9f-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--wac9f-radius);
  margin-bottom: 1.5rem;
}

.wac9f-carousel-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  overflow: hidden;
}

.wac9f-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--wac9f-transition-speed, 0.4s) ease;
  cursor: pointer;
}

.wac9f-slide-active {
  opacity: 1;
}

.wac9f-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wac9f-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.wac9f-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.wac9f-dot-active {
  background: var(--wac9f-highlight);
  transform: scale(1.3);
}

/* === Section Headings === */
.wac9f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wac9f-text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wac9f-highlight);
  display: inline-block;
}

.wac9f-section-title .wac9f-title-icon {
  margin-right: 0.5rem;
  color: var(--wac9f-gold);
}

/* === Game Grid === */
.wac9f-category-section {
  margin-bottom: 2rem;
}

.wac9f-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wac9f-highlight);
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--wac9f-gold);
}

.wac9f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.wac9f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  border-radius: var(--wac9f-radius-sm);
  padding: 0.4rem;
}

.wac9f-game-item:active {
  transform: scale(0.95);
}

.wac9f-game-item:hover {
  background: rgba(0, 229, 255, 0.06);
}

.wac9f-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--wac9f-radius-sm);
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.wac9f-game-name {
  font-size: 1rem;
  color: var(--wac9f-text-muted);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3rem;
}

/* === Content Modules === */
.wac9f-card {
  background: var(--wac9f-gradient-card);
  border-radius: var(--wac9f-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: var(--wac9f-shadow);
}

.wac9f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wac9f-highlight);
  margin-bottom: 1rem;
}

.wac9f-card-text {
  font-size: 1.2rem;
  color: var(--wac9f-text-muted);
  line-height: 1.8rem;
}

.wac9f-card-text p {
  margin-bottom: 0.8rem;
}

/* === Promo Link Buttons === */
.wac9f-promo-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--wac9f-gradient-btn);
  color: #fff;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(0, 229, 255, 0.3);
}

.wac9f-promo-btn:active {
  transform: scale(0.95);
}

.wac9f-promo-btn-gold {
  background: var(--wac9f-gradient-gold);
  color: #1a1a2e;
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
}

.wac9f-promo-link {
  color: var(--wac9f-highlight);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--wac9f-highlight);
  transition: color 0.2s;
}

.wac9f-promo-link:hover {
  color: var(--wac9f-accent);
}

/* === Bottom Navigation === */
.wac9f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.wac9f-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--wac9f-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
  border-radius: 8px;
}

.wac9f-bnav-btn:active,
.wac9f-bnav-pressed {
  transform: scale(0.9);
}

.wac9f-bnav-active {
  color: var(--wac9f-highlight);
}

.wac9f-bnav-active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wac9f-highlight);
  margin-top: 2px;
}

.wac9f-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
}

.wac9f-bnav-label {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
}

@media (min-width: 769px) {
  .wac9f-bottom-nav {
    display: none;
  }
}

/* === Footer === */
.wac9f-footer {
  background: #12122a;
  padding: 2rem 1rem 6rem;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}

@media (min-width: 769px) {
  .wac9f-footer {
    padding-bottom: 2rem;
  }
}

.wac9f-footer-brand {
  font-size: 1.3rem;
  color: var(--wac9f-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7rem;
}

.wac9f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.wac9f-footer-link {
  padding: 0.5rem 1rem;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 16px;
  color: var(--wac9f-highlight);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wac9f-footer-link:hover {
  background: rgba(0, 229, 255, 0.15);
}

.wac9f-footer-copy {
  font-size: 1.1rem;
  color: var(--wac9f-text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Partners === */
.wac9f-partners {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wac9f-partner-logo {
  height: 28px;
  opacity: 0.7;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.wac9f-partner-logo:hover {
  opacity: 1;
}

/* === Payment Methods === */
.wac9f-payment-grid {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.wac9f-payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem;
  background: rgba(0, 229, 255, 0.05);
  border-radius: var(--wac9f-radius-sm);
  min-width: 70px;
}

.wac9f-payment-item .wac9f-payment-icon {
  font-size: 2.4rem;
}

.wac9f-payment-item .wac9f-payment-name {
  font-size: 1rem;
  color: var(--wac9f-text-muted);
}

/* === FAQ Accordion === */
.wac9f-faq-item {
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--wac9f-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.wac9f-faq-q {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wac9f-text-light);
  padding: 1rem;
  background: rgba(0, 229, 255, 0.04);
}

.wac9f-faq-a {
  font-size: 1.1rem;
  color: var(--wac9f-text-muted);
  padding: 0.8rem 1rem;
  line-height: 1.6rem;
}

/* === Winners Showcase === */
.wac9f-winner-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.8rem;
}

.wac9f-winner-name {
  font-size: 1.1rem;
  color: var(--wac9f-text-light);
  flex: 1;
}

.wac9f-winner-game {
  font-size: 1rem;
  color: var(--wac9f-text-muted);
  flex: 1;
}

.wac9f-winner-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wac9f-gold);
}

/* === Testimonials === */
.wac9f-testimonial {
  padding: 1rem;
  background: rgba(0, 229, 255, 0.04);
  border-radius: var(--wac9f-radius-sm);
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--wac9f-gold);
}

.wac9f-testimonial-text {
  font-size: 1.1rem;
  color: var(--wac9f-text-muted);
  line-height: 1.6rem;
  font-style: italic;
}

.wac9f-testimonial-author {
  font-size: 1rem;
  color: var(--wac9f-highlight);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* === App Download CTA === */
.wac9f-cta-box {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(255, 215, 0, 0.08));
  border-radius: var(--wac9f-radius);
  border: 1px solid rgba(0, 229, 255, 0.15);
  margin-bottom: 1.5rem;
}

.wac9f-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wac9f-highlight);
  margin-bottom: 0.5rem;
}

.wac9f-cta-text {
  font-size: 1.2rem;
  color: var(--wac9f-text-muted);
  margin-bottom: 1.2rem;
}

/* === RTP Table === */
.wac9f-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
}

.wac9f-rtp-name {
  color: var(--wac9f-text-light);
  flex: 1;
}

.wac9f-rtp-bar {
  flex: 2;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 0 0.8rem;
  overflow: hidden;
}

.wac9f-rtp-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--wac9f-gradient-btn);
}

.wac9f-rtp-value {
  color: var(--wac9f-gold);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

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

/* === Desktop Override === */
@media (min-width: 769px) {
  body {
    max-width: 430px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  }
}
