/* =========================================================
   jljl55 casino - Core Base Stylesheet
   Site: jljl55casino.click (en-PH)
   Prefix: wf4b4-
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --wf4b4-bg: #1A1A2E;
  --wf4b4-bg-alt: #21213a;
  --wf4b4-bg-card: #262648;
  --wf4b4-primary: #F4A460;
  --wf4b4-secondary: #9932CC;
  --wf4b4-accent: #DEB887;
  --wf4b4-muted: #BC8F8F;
  --wf4b4-text: #F5F0E6;
  --wf4b4-text-soft: #D9D2C5;
  --wf4b4-border: rgba(244, 164, 96, 0.25);
  --wf4b4-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --wf4b4-radius: 14px;
  --wf4b4-radius-sm: 10px;
  --wf4b4-max: 430px;
  --wf4b4-header-h: 60px;
  --wf4b4-bottom-h: 64px;
}

* { 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", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, var(--wf4b4-bg) 0%, #11112a 100%);
  color: var(--wf4b4-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--wf4b4-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wf4b4-accent); }

/* ---------- Layout ---------- */
.wf4b4-wrapper { width: 100%; max-width: var(--wf4b4-max); margin: 0 auto; padding: 0 12px; }
.wf4b4-container { width: 100%; padding: 14px 12px; }
main { padding-bottom: 90px; }

/* ---------- Header ---------- */
.wf4b4-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wf4b4-header-h);
  background: linear-gradient(90deg, rgba(26,26,46,.96), rgba(38,38,72,.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wf4b4-border);
  z-index: 1000;
  display: flex; align-items: center;
}

.wf4b4-header-inner {
  width: 100%;
  max-width: var(--wf4b4-max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.wf4b4-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--wf4b4-text); font-weight: 700; font-size: 1.6rem;
}

.wf4b4-brand img {
  width: 30px; height: 30px; border-radius: 8px;
  box-shadow: 0 0 10px rgba(244,164,96,.5);
}

.wf4b4-brand span {
  background: linear-gradient(90deg, var(--wf4b4-primary), var(--wf4b4-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wf4b4-header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.wf4b4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  border: none; border-radius: 24px;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer; text-transform: uppercase; letter-spacing: .3px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.wf4b4-btn:active { transform: scale(.96); }

.wf4b4-btn-primary {
  background: linear-gradient(135deg, var(--wf4b4-primary), #e08a4a);
  color: #2a1500; box-shadow: 0 4px 12px rgba(244,164,96,.4);
}
.wf4b4-btn-secondary {
  background: linear-gradient(135deg, var(--wf4b4-secondary), #6f1e9f);
  color: #fff; box-shadow: 0 4px 12px rgba(153,50,204,.4);
}
.wf4b4-btn-ghost {
  background: transparent; color: var(--wf4b4-text);
  border: 1px solid var(--wf4b4-border);
}
.wf4b4-btn-block { width: 100%; padding: 12px; font-size: 1.4rem; }

.wf4b4-text-link {
  color: var(--wf4b4-primary); font-weight: 700;
  border-bottom: 1px dashed rgba(244,164,96,.5); cursor: pointer;
}
.wf4b4-text-link:hover { color: var(--wf4b4-accent); }

/* ---------- Mobile Menu Toggle ---------- */
.wf4b4-menu-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(244,164,96,.12);
  border: 1px solid var(--wf4b4-border);
  border-radius: 10px;
  color: var(--wf4b4-primary);
  cursor: pointer; font-size: 1.6rem;
}

/* ---------- Expandable Nav Menu ---------- */
.wf4b4-mobile-menu {
  position: fixed;
  top: var(--wf4b4-header-h);
  left: 0; right: 0;
  background: rgba(20,20,40,.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wf4b4-border);
  transform: translateY(-130%);
  transition: transform .3s ease;
  z-index: 9999;
  padding: 14px 16px 22px;
  max-height: 75vh; overflow-y: auto;
}
.wf4b4-mobile-menu.open { transform: translateY(0); }

.wf4b4-mobile-menu h4 {
  font-size: 1.2rem; color: var(--wf4b4-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 10px 4px 6px;
}
.wf4b4-mobile-menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.wf4b4-mobile-menu a {
  display: block; padding: 10px 12px;
  background: rgba(244,164,96,.06);
  border-radius: 10px;
  color: var(--wf4b4-text);
  font-size: 1.25rem; font-weight: 600;
  border: 1px solid rgba(244,164,96,.1);
}
.wf4b4-mobile-menu a:hover { background: rgba(244,164,96,.18); color: var(--wf4b4-primary); }

/* ---------- Hero / Carousel ---------- */
.wf4b4-hero {
  margin-top: calc(var(--wf4b4-header-h) + 12px);
  position: relative;
  border-radius: var(--wf4b4-radius);
  overflow: hidden; box-shadow: var(--wf4b4-shadow);
}

.wf4b4-carousel { position: relative; height: 200px; }
.wf4b4-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.wf4b4-slide.active { opacity: 1; }
.wf4b4-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.wf4b4-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: #fff; cursor: pointer;
}
.wf4b4-slide-overlay h2 { font-size: 1.7rem; color: var(--wf4b4-primary); margin-bottom: 4px; }
.wf4b4-slide-overlay p { font-size: 1.2rem; color: var(--wf4b4-text-soft); }

.wf4b4-carousel-dots {
  position: absolute; bottom: 8px; right: 10px;
  display: flex; gap: 6px; z-index: 5;
}
.wf4b4-carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.wf4b4-carousel-dots span.active { background: var(--wf4b4-primary); }

/* ---------- Sections ---------- */
.wf4b4-section { padding: 18px 0; }

.wf4b4-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding: 0 4px;
}
.wf4b4-section-head h2 {
  font-size: 1.7rem; font-weight: 800;
  color: var(--wf4b4-primary);
  display: flex; align-items: center; gap: 8px;
}
.wf4b4-section-head .wf4b4-more {
  font-size: 1.15rem; color: var(--wf4b4-accent); font-weight: 600;
}

/* ---------- Game Grid ---------- */
.wf4b4-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.wf4b4-game-card {
  background: var(--wf4b4-bg-card);
  border-radius: var(--wf4b4-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(244,164,96,.08);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wf4b4-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--wf4b4-primary);
  box-shadow: 0 6px 18px rgba(244,164,96,.25);
}
.wf4b4-game-card .wf4b4-game-img { aspect-ratio: 1; width: 100%; background: #000; }
.wf4b4-game-card .wf4b4-game-img img { width: 100%; height: 100%; object-fit: cover; }
.wf4b4-game-card .wf4b4-game-name {
  padding: 6px 8px;
  font-size: 1.1rem; color: var(--wf4b4-text-soft); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

.wf4b4-cat-label {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(153,50,204,.18);
  color: var(--wf4b4-secondary);
  border-radius: 12px;
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1px;
  border: 1px solid rgba(153,50,204,.3);
}

/* ---------- Content cards ---------- */
.wf4b4-card {
  background: var(--wf4b4-bg-card);
  border-radius: var(--wf4b4-radius);
  padding: 16px;
  border: 1px solid var(--wf4b4-border);
  box-shadow: var(--wf4b4-shadow);
}
.wf4b4-card h3 {
  font-size: 1.5rem; color: var(--wf4b4-accent);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.wf4b4-card p {
  font-size: 1.3rem; color: var(--wf4b4-text-soft);
  line-height: 1.55; margin-bottom: 8px;
}
.wf4b4-card ul { padding-left: 18px; color: var(--wf4b4-text-soft); font-size: 1.25rem; line-height: 1.6; }
.wf4b4-card ul li { margin-bottom: 4px; }

/* ---------- RTP / Stat grid ---------- */
.wf4b4-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.wf4b4-stat-tile {
  background: rgba(244,164,96,.08);
  border: 1px solid var(--wf4b4-border);
  border-radius: var(--wf4b4-radius-sm);
  padding: 10px; text-align: center;
}
.wf4b4-stat-tile .num { font-size: 1.9rem; color: var(--wf4b4-primary); font-weight: 800; display: block; }
.wf4b4-stat-tile .lbl { font-size: 1.05rem; color: var(--wf4b4-muted); margin-top: 2px; }

/* ---------- Testimonials ---------- */
.wf4b4-testimonial {
  background: rgba(153,50,204,.08);
  border-left: 3px solid var(--wf4b4-secondary);
  border-radius: 8px;
  padding: 12px; margin-bottom: 10px;
}
.wf4b4-testimonial .who { font-size: 1.2rem; color: var(--wf4b4-accent); font-weight: 700; margin-bottom: 4px; }
.wf4b4-testimonial .stars { color: #FFD700; font-size: 1.1rem; letter-spacing: 2px; }

/* ---------- Payment chips ---------- */
.wf4b4-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wf4b4-chip {
  background: rgba(222,184,135,.12);
  border: 1px solid rgba(222,184,135,.3);
  color: var(--wf4b4-accent);
  padding: 6px 12px;
  border-radius: 18px; font-size: 1.15rem; font-weight: 600;
}

/* ---------- Winners ---------- */
.wf4b4-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  background: rgba(244,164,96,.06);
  border-radius: 8px; margin-bottom: 6px; font-size: 1.2rem;
}
.wf4b4-winner .amt { color: #4CAF50; font-weight: 800; }
.wf4b4-winner .game { color: var(--wf4b4-text-soft); }

/* ---------- Footer ---------- */
.wf4b4-footer {
  background: #11112a;
  border-top: 1px solid var(--wf4b4-border);
  padding: 24px 12px 20px;
  margin-top: 20px;
  color: var(--wf4b4-text-soft);
}
.wf4b4-footer h3 { font-size: 1.4rem; color: var(--wf4b4-primary); margin-bottom: 10px; font-weight: 700; }
.wf4b4-footer p { font-size: 1.2rem; line-height: 1.6; color: var(--wf4b4-muted); margin-bottom: 12px; }

.wf4b4-footer-links {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 12px; margin: 12px 0;
}
.wf4b4-footer-links a {
  color: var(--wf4b4-text-soft); font-size: 1.15rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(244,164,96,.12);
}
.wf4b4-footer-links a:hover { color: var(--wf4b4-primary); }

.wf4b4-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

.wf4b4-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--wf4b4-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(244,164,96,.1);
  margin-top: 10px;
}

/* ---------- Mobile Bottom Nav ---------- */
.wf4b4-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--wf4b4-bottom-h);
  background: linear-gradient(180deg, rgba(38,38,72,.98), rgba(20,20,40,.98));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--wf4b4-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.35);
}

.wf4b4-bottom-nav button,
.wf4b4-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  color: var(--wf4b4-muted);
  font-size: 1.05rem; font-weight: 600;
  cursor: pointer;
  transition: color .2s, transform .15s;
  text-decoration: none;
}
.wf4b4-bottom-nav button:active,
.wf4b4-bottom-nav a:active { transform: scale(.92); }

.wf4b4-bottom-nav .material-icons,
.wf4b4-bottom-nav .fas,
.wf4b4-bottom-nav .far,
.wf4b4-bottom-nav ion-icon,
.wf4b4-bottom-nav .bi { font-size: 22px; }

.wf4b4-bottom-nav .active { color: var(--wf4b4-primary); }
.wf4b4-bottom-nav .wf4b4-nav-promo { color: var(--wf4b4-primary); }
.wf4b4-bottom-nav .wf4b4-nav-promo .fas,
.wf4b4-bottom-nav .wf4b4-nav-promo .material-icons {
  filter: drop-shadow(0 0 6px rgba(244,164,96,.7));
}

/* ---------- Desktop adjustments ---------- */
@media (min-width: 769px) {
  body { background: linear-gradient(160deg, #1A1A2E 0%, #11112a 100%); }
  .wf4b4-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .wf4b4-wrapper { max-width: 760px; padding: 0 20px; }
  .wf4b4-header-inner { max-width: 760px; }
  .wf4b4-game-grid { grid-template-columns: repeat(5, 1fr); }
  .wf4b4-carousel { height: 320px; }
  .wf4b4-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utilities ---------- */
.wf4b4-text-center { text-align: center; }
.wf4b4-mt-12 { margin-top: 12px; } .wf4b4-mt-16 { margin-top: 16px; }
.wf4b4-hidden { display: none !important; }
.wf4b4-prose { font-size: 1.3rem; line-height: 1.6; color: var(--wf4b4-text-soft); }
.wf4b4-prose strong { color: var(--wf4b4-primary); }
