/**
 * XBJili CSS Styles - All classes prefixed with w5123-
 * Color palette: #FFB3BA (pink light) | #FF91A4 (pink accent) | #212F3D (dark bg) | #808080 (gray)
 */

:root {
  --w5123-primary: #FF91A4;
  --w5123-primary-light: #FFB3BA;
  --w5123-bg-dark: #212F3D;
  --w5123-bg-darker: #1a2530;
  --w5123-bg-card: #2a3b4a;
  --w5123-text-light: #FFB3BA;
  --w5123-text-white: #f0f0f0;
  --w5123-text-gray: #808080;
  --w5123-accent: #FF91A4;
  --w5123-border: rgba(255, 179, 186, 0.15);
  --w5123-radius: 8px;
  --w5123-radius-lg: 12px;
  --w5123-shadow: 0 4px 15px rgba(0,0,0,0.3);
  --w5123-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--w5123-bg-dark);
  color: var(--w5123-text-white);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w5123-primary-light); text-decoration: none; transition: var(--w5123-transition); }
a:hover { color: var(--w5123-primary); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w5123-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--w5123-bg-darker);
  border-bottom: 1px solid var(--w5123-border);
  z-index: 1000; padding: 0 1.2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.w5123-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
}
.w5123-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w5123-header-logo span { font-size: 1.8rem; font-weight: 700; color: var(--w5123-primary); letter-spacing: 0.5px; }
.w5123-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w5123-btn-register {
  background: linear-gradient(135deg, var(--w5123-primary), var(--w5123-primary-light));
  color: #212F3D; border: none; padding: 0.6rem 1.4rem;
  border-radius: var(--w5123-radius); font-size: 1.2rem; font-weight: 700;
  cursor: pointer; transition: var(--w5123-transition); text-transform: uppercase;
}
.w5123-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(255,145,164,0.5); }
.w5123-btn-login {
  background: transparent; border: 1px solid var(--w5123-primary);
  color: var(--w5123-primary); padding: 0.5rem 1.2rem;
  border-radius: var(--w5123-radius); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; transition: var(--w5123-transition);
}
.w5123-btn-login:hover { background: rgba(255,145,164,0.1); }
.w5123-menu-toggle {
  background: none; border: none; color: var(--w5123-text-white);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.w5123-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--w5123-bg-darker); z-index: 9999;
  transition: right 0.35s ease; padding: 2rem 1.6rem;
  border-left: 1px solid var(--w5123-border);
}
.w5123-menu-active { right: 0; }
.w5123-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.6); z-index: 9998; display: none;
}
.w5123-overlay-active { display: block; }
.w5123-menu-close {
  background: none; border: none; color: var(--w5123-text-white);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.w5123-menu-links { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.w5123-menu-links a {
  color: var(--w5123-text-white); font-size: 1.5rem; padding: 1rem 0.8rem;
  border-radius: var(--w5123-radius); transition: var(--w5123-transition);
  display: flex; align-items: center; gap: 0.8rem;
}
.w5123-menu-links a:hover { background: rgba(255,145,164,0.1); color: var(--w5123-primary); }
.w5123-menu-links a span.material-symbols-outlined,
.w5123-menu-links a span.iconify { font-size: 2rem; }

/* Main Content */
.w5123-main { padding-top: 56px; }

/* Carousel */
.w5123-carousel { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16/8; }
.w5123-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.w5123-slide-active { opacity: 1; }
.w5123-slide img { width: 100%; height: 100%; object-fit: cover; }
.w5123-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.w5123-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--w5123-transition); border: none;
}
.w5123-dot-active { background: var(--w5123-primary); transform: scale(1.3); }

/* Section */
.w5123-section { padding: 2rem 1.4rem; }
.w5123-section-title {
  font-size: 2rem; font-weight: 700; color: var(--w5123-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w5123-border);
}
.w5123-section-title span { color: var(--w5123-primary-light); }

/* Game Grid */
.w5123-game-category-title {
  font-size: 1.6rem; font-weight: 600; color: var(--w5123-primary-light);
  margin: 1.6rem 0 1rem; padding-left: 0.4rem;
  border-left: 3px solid var(--w5123-primary);
}
.w5123-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; margin-bottom: 1rem;
}
.w5123-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--w5123-transition);
  border-radius: var(--w5123-radius); padding: 0.5rem;
}
.w5123-game-item:hover { transform: translateY(-3px); background: rgba(255,145,164,0.08); }
.w5123-game-item img {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--w5123-radius);
  border: 1px solid var(--w5123-border); margin-bottom: 0.3rem;
}
.w5123-game-item span {
  font-size: 1rem; color: var(--w5123-text-white); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  width: 100%; display: block;
}

/* Content Card */
.w5123-card {
  background: var(--w5123-bg-card); border-radius: var(--w5123-radius-lg);
  padding: 1.6rem; margin-bottom: 1.2rem; border: 1px solid var(--w5123-border);
}
.w5123-card-title {
  font-size: 1.6rem; font-weight: 600; color: var(--w5123-primary-light);
  margin-bottom: 0.8rem;
}
.w5123-card p { font-size: 1.4rem; color: var(--w5123-text-gray); line-height: 1.6; }
.w5123-card p strong { color: var(--w5123-text-white); }

/* Promo Button */
.w5123-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w5123-primary), #ff6b8a);
  color: #212F3D; padding: 1rem 2.4rem;
  border-radius: 50px; font-size: 1.5rem; font-weight: 700;
  cursor: pointer; border: none; text-transform: uppercase;
  transition: var(--w5123-transition); margin: 0.8rem 0;
}
.w5123-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255,145,164,0.4); }

/* Promo Text Link */
.w5123-promo-link {
  color: var(--w5123-primary); font-weight: 700; font-size: 1.5rem;
  text-decoration: underline; cursor: pointer;
}
.w5123-promo-link:hover { color: var(--w5123-primary-light); }

/* Footer */
.w5123-footer {
  background: var(--w5123-bg-darker); padding: 2rem 1.4rem 1rem;
  border-top: 1px solid var(--w5123-border);
}
.w5123-footer-desc {
  font-size: 1.3rem; color: var(--w5123-text-gray);
  line-height: 1.6; margin-bottom: 1.2rem;
}
.w5123-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.w5123-footer-links a {
  background: var(--w5123-bg-card); color: var(--w5123-primary-light);
  padding: 0.5rem 1rem; border-radius: var(--w5123-radius);
  font-size: 1.2rem; border: 1px solid var(--w5123-border);
  transition: var(--w5123-transition);
}
.w5123-footer-links a:hover { background: rgba(255,145,164,0.1); }
.w5123-footer-copy {
  text-align: center; font-size: 1.2rem; color: var(--w5123-text-gray);
  padding-top: 1rem; border-top: 1px solid var(--w5123-border);
}

/* Bottom Navigation */
.w5123-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, var(--w5123-bg-darker), #151f29);
  border-top: 1px solid var(--w5123-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.2rem;
}
.w5123-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; min-width: 60px; min-height: 56px;
  background: none; border: none; color: var(--w5123-text-gray);
  cursor: pointer; transition: var(--w5123-transition);
  border-radius: 8px; padding: 4px 2px;
}
.w5123-bottom-btn:hover, .w5123-bottom-btn:active { color: var(--w5123-primary); }
.w5123-bottom-btn:hover .w5123-bnav-icon,
.w5123-bottom-btn:active .w5123-bnav-icon { transform: scale(1.15); }
.w5123-bnav-icon { font-size: 22px; transition: var(--w5123-transition); display: flex; align-items: center; justify-content: center; }
.w5123-bnav-text { font-size: 1rem; white-space: nowrap; }
.w5123-bottom-btn.w5123-active { color: var(--w5123-primary); }
.w5123-bottom-btn.w5123-active .w5123-bnav-icon { transform: scale(1.1); }

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

/* Animations */
.w5123-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.w5123-visible { opacity: 1; transform: translateY(0); }

/* FAQ Accordion */
.w5123-faq-item { border-bottom: 1px solid var(--w5123-border); }
.w5123-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; color: var(--w5123-text-white);
  font-size: 1.4rem;
}
.w5123-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  font-size: 1.3rem; color: var(--w5123-text-gray); line-height: 1.6;
}
.w5123-faq-item.w5123-faq-open .w5123-faq-a { max-height: 200px; padding-bottom: 1rem; }

/* Responsive */
@media (min-width: 769px) {
  .w5123-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .w5123-main { padding-bottom: 72px; }
}

/* Utility */
.w5123-text-center { text-align: center; }
.w5123-mb-1 { margin-bottom: 0.8rem; }
.w5123-mb-2 { margin-bottom: 1.6rem; }
.w5123-flex-center { display: flex; justify-content: center; align-items: center; }
