/* JL96 2026 - Layout Stylesheet */
/* All classes prefixed with w56fd- for namespace isolation */

:root {
  --w56fd-primary: #2ECC71;
  --w56fd-primary-dark: #27AE60;
  --w56fd-bg: #34495E;
  --w56fd-bg-dark: #2C3E50;
  --w56fd-bg-light: #3D566E;
  --w56fd-text: #E8F5E8;
  --w56fd-text-muted: #A8C8A8;
  --w56fd-accent: #F39C12;
  --w56fd-accent-light: #F1C40F;
  --w56fd-danger: #E74C3C;
  --w56fd-success: #2ECC71;
  --w56fd-border: #4A6A7A;
  --w56fd-card-bg: #2C3E50;
  --w56fd-header-bg: #1A252F;
  --w56fd-footer-bg: #1A252F;
  --w56fd-shadow: rgba(0,0,0,0.3);
  --w56fd-radius: 8px;
  --w56fd-radius-lg: 12px;
  --w56fd-transition: 0.3s ease;
}

*, *::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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w56fd-bg);
  color: var(--w56fd-text);
  line-height: 1.6rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--w56fd-primary); text-decoration: none; transition: color var(--w56fd-transition); }
a:hover { color: var(--w56fd-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === HEADER === */
.w56fd-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 52px;
  background: var(--w56fd-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--w56fd-shadow);
}

.w56fd-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.w56fd-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.w56fd-logo-text { color: var(--w56fd-primary); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }

.w56fd-header-actions { display: flex; align-items: center; gap: 6px; }

.w56fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--w56fd-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--w56fd-transition);
  min-height: 32px;
}

.w56fd-btn-register {
  background: var(--w56fd-primary);
  color: #fff;
}
.w56fd-btn-register:hover { background: var(--w56fd-primary-dark); transform: scale(1.03); }

.w56fd-btn-login {
  background: transparent;
  color: var(--w56fd-primary);
  border: 1.5px solid var(--w56fd-primary);
}
.w56fd-btn-login:hover { background: rgba(46,204,113,0.1); }

.w56fd-hamburger {
  background: none;
  border: none;
  color: var(--w56fd-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* === MOBILE MENU === */
.w56fd-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--w56fd-transition);
}
.w56fd-overlay-active { opacity: 1; visibility: visible; }

.w56fd-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w56fd-bg-dark);
  z-index: 9999;
  transition: right var(--w56fd-transition);
  overflow-y: auto;
  padding: 60px 0 20px;
}
.w56fd-menu-active { right: 0; }

.w56fd-mobile-menu .w56fd-menu-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--w56fd-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.w56fd-mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--w56fd-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--w56fd-border);
  transition: all var(--w56fd-transition);
}
.w56fd-mobile-menu a:hover {
  background: rgba(46,204,113,0.1);
  color: var(--w56fd-primary);
}

/* === CAROUSEL === */
.w56fd-carousel {
  position: relative;
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  aspect-ratio: 430/200;
  background: var(--w56fd-bg-dark);
}

.w56fd-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.w56fd-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w56fd-slide-active { opacity: 1; }

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

.w56fd-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--w56fd-transition);
}
.w56fd-dot-active { background: var(--w56fd-primary); transform: scale(1.3); }

/* === MAIN CONTENT === */
.w56fd-main {
  padding: 12px;
  padding-bottom: 80px;
}

.w56fd-section {
  margin-bottom: 20px;
}

.w56fd-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w56fd-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--w56fd-primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.w56fd-section-title i, .w56fd-section-title .material-icons {
  font-size: 2rem;
}

/* === GAME GRID === */
.w56fd-game-grid {
  display: grid;
  gap: 8px;
}

.w56fd-game-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.w56fd-game-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.w56fd-game-item {
  text-align: center;
  cursor: pointer;
  border-radius: var(--w56fd-radius);
  overflow: hidden;
  transition: transform var(--w56fd-transition);
  background: var(--w56fd-card-bg);
}
.w56fd-game-item:hover { transform: translateY(-2px); }

.w56fd-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--w56fd-radius) var(--w56fd-radius) 0 0;
}

.w56fd-game-name {
  font-size: 1.1rem;
  padding: 4px 2px;
  color: var(--w56fd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* === CONTENT MODULES === */
.w56fd-module {
  background: var(--w56fd-card-bg);
  border-radius: var(--w56fd-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px var(--w56fd-shadow);
}

.w56fd-module h2 {
  font-size: 1.7rem;
  color: var(--w56fd-primary);
  margin-bottom: 10px;
}

.w56fd-module h3 {
  font-size: 1.5rem;
  color: var(--w56fd-accent);
  margin: 10px 0 6px;
}

.w56fd-module p {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--w56fd-text);
  margin-bottom: 8px;
}

.w56fd-module ul, .w56fd-module ol {
  padding-left: 18px;
  margin-bottom: 10px;
}
.w56fd-module li {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--w56fd-text-muted);
  list-style: disc;
}

.w56fd-promo-link {
  display: inline-block;
  color: var(--w56fd-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--w56fd-transition);
  text-decoration: underline;
}
.w56fd-promo-link:hover { color: var(--w56fd-accent-light); }

.w56fd-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--w56fd-primary), var(--w56fd-primary-dark));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--w56fd-radius);
  cursor: pointer;
  transition: all var(--w56fd-transition);
  margin: 12px 0;
}
.w56fd-cta-btn:hover { transform: scale(1.02); box-shadow: 0 4px 15px rgba(46,204,113,0.4); }

/* === FAQ ACCORDION === */
.w56fd-faq-item {
  border: 1px solid var(--w56fd-border);
  border-radius: var(--w56fd-radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--w56fd-bg-light);
}
.w56fd-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w56fd-text);
  transition: background var(--w56fd-transition);
}
.w56fd-faq-header:hover { background: rgba(46,204,113,0.08); }
.w56fd-faq-icon { font-size: 1.8rem; color: var(--w56fd-primary); transition: transform var(--w56fd-transition); }
.w56fd-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 14px;
}
.w56fd-faq-content p {
  padding: 8px 0 14px;
  font-size: 1.3rem;
  color: var(--w56fd-text-muted);
  line-height: 1.5;
}

/* === FEATURES LIST === */
.w56fd-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.w56fd-feature-card {
  background: var(--w56fd-bg-light);
  border-radius: var(--w56fd-radius);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--w56fd-border);
}
.w56fd-feature-card i, .w56fd-feature-card .material-icons {
  font-size: 2.4rem;
  color: var(--w56fd-primary);
  margin-bottom: 6px;
}
.w56fd-feature-card h3 {
  font-size: 1.3rem;
  color: var(--w56fd-accent);
  margin-bottom: 4px;
}
.w56fd-feature-card p {
  font-size: 1.15rem;
  color: var(--w56fd-text-muted);
  line-height: 1.4;
}

/* === WINNER TABLE === */
.w56fd-winner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.w56fd-winner-table th {
  background: var(--w56fd-primary-dark);
  color: #fff;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
}
.w56fd-winner-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--w56fd-border);
  color: var(--w56fd-text-muted);
}
.w56fd-winner-table tr:hover td { background: rgba(46,204,113,0.05); }

/* === FOOTER === */
.w56fd-footer {
  background: var(--w56fd-footer-bg);
  padding: 20px 14px 16px;
  text-align: center;
  border-top: 2px solid var(--w56fd-primary-dark);
}

.w56fd-footer-intro {
  font-size: 1.25rem;
  color: var(--w56fd-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.w56fd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.w56fd-footer-links a {
  font-size: 1.2rem;
  color: var(--w56fd-text);
  transition: color var(--w56fd-transition);
}
.w56fd-footer-links a:hover { color: var(--w56fd-primary); }

.w56fd-footer-copy {
  font-size: 1.1rem;
  color: var(--w56fd-text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* === BOTTOM NAV === */
.w56fd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 58px;
  background: var(--w56fd-header-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--w56fd-shadow);
  border-top: 1px solid var(--w56fd-border);
}

.w56fd-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--w56fd-text-muted);
  cursor: pointer;
  transition: all var(--w56fd-transition);
  padding: 4px 0;
  text-decoration: none;
  gap: 2px;
}

.w56fd-bottom-btn i,
.w56fd-bottom-btn .material-icons,
.w56fd-bottom-btn ion-icon,
.w56fd-bottom-btn .bi {
  font-size: 22px;
  transition: all var(--w56fd-transition);
}

.w56fd-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.w56fd-bottom-btn:hover,
.w56fd-bottom-btn.w56fd-active {
  color: var(--w56fd-primary);
}
.w56fd-bottom-btn:hover i,
.w56fd-bottom-btn:hover .material-icons,
.w56fd-bottom-btn:hover ion-icon,
.w56fd-bottom-btn:hover .bi,
.w56fd-bottom-btn.w56fd-active i,
.w56fd-bottom-btn.w56fd-active .material-icons,
.w56fd-bottom-btn.w56fd-active ion-icon,
.w56fd-bottom-btn.w56fd-active .bi {
  transform: scale(1.15);
  color: var(--w56fd-primary);
}

/* === INTERNAL LINKS === */
.w56fd-internal-link {
  color: var(--w56fd-accent);
  text-decoration: underline;
  font-weight: 500;
}
.w56fd-internal-link:hover { color: var(--w56fd-accent-light); }

/* === PAYMENT ICONS === */
.w56fd-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}
.w56fd-payment-badge {
  background: var(--w56fd-bg-light);
  border: 1px solid var(--w56fd-border);
  border-radius: var(--w56fd-radius);
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--w56fd-text);
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .w56fd-bottom-nav { display: none; }
  body { max-width: 430px; }
}

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

/* === UTILITY === */
.w56fd-text-center { text-align: center; }
.w56fd-mt-10 { margin-top: 10px; }
.w56fd-mb-10 { margin-bottom: 10px; }
.w56fd-hidden { display: none !important; }
