/* ============================================================
   Juan 365 - layout-bebe.css
   All custom classes use the "wbebe-" prefix.
   Palette: #2E4057 | #FFFFFF | #FFCCCD | #4DB6AC
   ============================================================ */

:root {
  --wbebe-primary: #2E4057;
  --wbebe-bg: #243447;
  --wbebe-surface: #34506b;
  --wbebe-text: #FFFFFF;
  --wbebe-soft: #FFCCCD;
  --wbebe-accent: #4DB6AC;
  --wbebe-accent-dark: #2f8a82;
  --wbebe-gold: #f5c451;
  --wbebe-muted: #b8c4d2;
  --wbebe-radius: 14px;
  --wbebe-shadow: 0 6px 18px rgba(0,0,0,0.35);
  --wbebe-header-h: 60px;
  --wbebe-bottomnav-h: 62px;
  --wbebe-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: linear-gradient(180deg, #243447 0%, #2E4057 60%, #243447 100%);
  color: var(--wbebe-text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
}

.wbebe-wrapper {
  max-width: var(--wbebe-maxw);
  margin: 0 auto;
  position: relative;
}

.wbebe-container {
  padding: 0 14px;
}

main.wbebe-main {
  padding-top: calc(var(--wbebe-header-h) + 6px);
  padding-bottom: 0;
}

@media (max-width: 768px) {
  main.wbebe-main { padding-bottom: calc(var(--wbebe-bottomnav-h) + 14px); }
}

/* ---------- Header ---------- */
.wbebe-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--wbebe-header-h);
  background: linear-gradient(90deg, #2E4057, #34506b);
  border-bottom: 2px solid var(--wbebe-accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  z-index: 1000;
}
.wbebe-header-inner {
  max-width: var(--wbebe-maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.wbebe-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--wbebe-text); text-decoration: none;
}
.wbebe-brand img { width: 28px; height: 28px; border-radius: 6px; }
.wbebe-brand-name {
  font-weight: 800; font-size: 17px; letter-spacing: .3px;
  background: linear-gradient(90deg, #FFCCCD, #4DB6AC);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wbebe-header-actions { display: flex; align-items: center; gap: 7px; }
.wbebe-menu-btn {
  background: transparent; border: 0; color: var(--wbebe-text);
  font-size: 22px; padding: 6px 8px; cursor: pointer;
}
.wbebe-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.wbebe-btn:active { transform: scale(0.96); }
.wbebe-btn-register {
  background: linear-gradient(135deg, #4DB6AC, #2f8a82);
  color: #fff; box-shadow: 0 3px 10px rgba(77,182,172,.45);
}
.wbebe-btn-login {
  background: linear-gradient(135deg, #FFCCCD, #ffb3b5);
  color: #2E4057; box-shadow: 0 3px 10px rgba(255,204,205,.35);
}
.wbebe-btn-cta {
  background: linear-gradient(135deg, #f5c451, #e0a93b);
  color: #2E4057; font-weight: 800;
}

/* ---------- Mobile menu ---------- */
.wbebe-mobile-menu {
  position: fixed;
  top: var(--wbebe-header-h); right: -100%;
  width: 78%; max-width: 320px;
  height: calc(100vh - var(--wbebe-header-h));
  background: #2E4057;
  border-left: 2px solid var(--wbebe-accent);
  padding: 18px 14px;
  transition: right .25s ease;
  z-index: 9999;
  overflow-y: auto;
}
.wbebe-mobile-menu.wbebe-menu-open { right: 0; }
.wbebe-mobile-menu a {
  display: block; color: var(--wbebe-text);
  padding: 12px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wbebe-mobile-menu a:hover, .wbebe-mobile-menu a:focus {
  background: rgba(77,182,172,0.18);
}
.wbebe-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998; display: none;
}
.wbebe-overlay.wbebe-menu-open { display: block; }

/* ---------- Hero carousel ---------- */
.wbebe-hero {
  margin: 10px 0 14px;
  border-radius: var(--wbebe-radius);
  overflow: hidden;
  box-shadow: var(--wbebe-shadow);
  position: relative;
}
.wbebe-slides { position: relative; }
.wbebe-slide {
  display: none; cursor: pointer; position: relative;
}
.wbebe-slide img { width: 100%; height: 170px; object-fit: cover; display: block; }
.wbebe-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  font-weight: 700; color: #fff;
}
.wbebe-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.wbebe-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.wbebe-dot.wbebe-dot-active { background: var(--wbebe-accent); }

/* ---------- Section / heading ---------- */
.wbebe-section { margin: 18px 0; }
.wbebe-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; margin: 0 0 10px;
  color: var(--wbebe-text);
  border-left: 4px solid var(--wbebe-accent);
  padding-left: 10px;
}
.wbebe-section-title i { color: var(--wbebe-soft); }
.wbebe-section-sub {
  font-size: 13px; color: var(--wbebe-muted); margin: -6px 0 12px; padding-left: 14px;
}
.wbebe-intro { color: var(--wbebe-muted); font-size: 14px; }

/* ---------- Game grid ---------- */
.wbebe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.wbebe-card {
  background: var(--wbebe-surface);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--wbebe-text);
  border: 1px solid rgba(77,182,172,0.18);
  transition: transform .15s, box-shadow .15s;
  display: block; cursor: pointer;
}
.wbebe-card:hover, .wbebe-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.wbebe-card img { width: 100%; height: 78px; object-fit: cover; display: block; }
.wbebe-card-name {
  font-size: 11px; font-weight: 600;
  padding: 5px 4px 7px; line-height: 1.25;
  min-height: 30px;
}

/* ---------- Category tag header ---------- */
.wbebe-cat-head {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 8px;
  font-size: 15px; font-weight: 700;
  color: var(--wbebe-soft);
}
.wbebe-cat-head .wbebe-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--wbebe-accent), transparent);
}

/* ---------- Tabs ---------- */
.wbebe-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 6px 0 12px; -webkit-overflow-scrolling: touch;
}
.wbebe-tab-btn {
  flex: 0 0 auto;
  padding: 7px 14px; border-radius: 999px;
  background: var(--wbebe-surface); color: var(--wbebe-text);
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
}
.wbebe-tab-btn.wbebe-tab-active {
  background: var(--wbebe-accent); color: #fff; border-color: var(--wbebe-accent);
}
.wbebe-tab-panel { display: none; }

/* ---------- Info blocks ---------- */
.wbebe-block {
  background: var(--wbebe-surface);
  border-radius: var(--wbebe-radius);
  padding: 14px;
  margin: 12px 0;
  border: 1px solid rgba(77,182,172,0.18);
}
.wbebe-block h3 {
  margin: 0 0 8px; font-size: 15px; color: var(--wbebe-soft);
}
.wbebe-block p { margin: 0 0 8px; font-size: 13.5px; color: var(--wbebe-muted); }
.wbebe-block ul { margin: 0; padding-left: 18px; color: var(--wbebe-muted); font-size: 13.5px; }
.wbebe-block li { margin-bottom: 4px; }

/* ---------- RTP / data bars ---------- */
.wbebe-rtp-row {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0; font-size: 12.5px;
}
.wbebe-rtp-label { width: 92px; color: var(--wbebe-muted); }
.wbebe-rtp-bar {
  flex: 1; height: 8px; background: rgba(255,255,255,0.1);
  border-radius: 999px; overflow: hidden;
}
.wbebe-rtp-fill {
  height: 100%; background: linear-gradient(90deg, var(--wbebe-accent), var(--wbebe-gold));
}
.wbebe-rtp-val { width: 44px; text-align: right; color: var(--wbebe-text); font-weight: 700; }

/* ---------- Testimonials ---------- */
.wbebe-review {
  background: var(--wbebe-surface);
  border-radius: 12px; padding: 12px; margin: 8px 0;
  border-left: 3px solid var(--wbebe-soft);
}
.wbebe-review-head {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700; margin-bottom: 4px;
}
.wbebe-stars { color: var(--wbebe-gold); }
.wbebe-review p { margin: 0; font-size: 12.5px; color: var(--wbebe-muted); }

/* ---------- Payment methods ---------- */
.wbebe-pay-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin: 8px 0;
}
.wbebe-pay {
  background: #fff; color: #2E4057;
  border-radius: 8px; padding: 10px 4px;
  text-align: center; font-size: 10px; font-weight: 700;
}

/* ---------- Winners ---------- */
.wbebe-winner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--wbebe-surface); border-radius: 10px;
  padding: 8px 12px; margin: 6px 0; font-size: 12.5px;
}
.wbebe-winner .wbebe-amt { color: var(--wbebe-gold); font-weight: 800; }

/* ---------- Play now banner ---------- */
.wbebe-cta-banner {
  background: linear-gradient(135deg, #4DB6AC, #2E4057);
  border-radius: var(--wbebe-radius);
  padding: 16px; text-align: center;
  margin: 16px 0;
  border: 1px solid var(--wbebe-accent);
}
.wbebe-cta-banner h3 { margin: 0 0 6px; color: #fff; font-size: 16px; }
.wbebe-cta-banner p { margin: 0 0 12px; color: var(--wbebe-soft); font-size: 12.5px; }

/* ---------- Inline affiliate link ---------- */
.wbebe-aff-link {
  color: var(--wbebe-soft); font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.wbebe-aff-link:hover { color: var(--wbebe-accent); }

/* ---------- Footer ---------- */
.wbebe-footer {
  background: #1c2c3d;
  border-top: 2px solid var(--wbebe-accent);
  padding: 18px 14px 22px;
  color: var(--wbebe-muted);
  font-size: 12.5px;
}
.wbebe-footer h4 {
  color: var(--wbebe-text); margin: 8px 0 6px; font-size: 14px;
}
.wbebe-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 8px 0 12px;
}
.wbebe-footer-links a {
  color: var(--wbebe-muted); text-decoration: none; font-size: 12px;
}
.wbebe-footer-links a:hover { color: var(--wbebe-accent); }
.wbebe-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px;
}
.wbebe-footer-copy { font-size: 11px; color: #7e8a99; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------- Mobile bottom nav ---------- */
.wbebe-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--wbebe-bottomnav-h);
  background: linear-gradient(180deg, #2E4057, #1c2c3d);
  border-top: 2px solid var(--wbebe-accent);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.35);
}
.wbebe-bottomnav-btn {
  flex: 1;
  background: transparent; border: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--wbebe-text); cursor: pointer;
  text-decoration: none;
  padding: 4px 2px;
  min-width: 60px; min-height: 60px;
  position: relative;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.wbebe-bottomnav-btn .wbebe-ico {
  font-size: 22px; margin-bottom: 2px; color: var(--wbebe-soft);
  transition: transform .18s;
}
.wbebe-bottomnav-btn .wbebe-lbl {
  font-size: 10px; color: var(--wbebe-text); opacity: .92;
}
.wbebe-bottomnav-btn.active .wbebe-ico { color: var(--wbebe-accent); transform: scale(1.12); }
.wbebe-bottomnav-btn:active { background: rgba(77,182,172,0.12); }
.wbebe-bottomnav-btn:active .wbebe-ico { transform: scale(0.9); }
.wbebe-badge {
  position: absolute; top: 6px; right: 18%;
  background: #ff5d6c; color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 999px;
}

@media (min-width: 769px) {
  .wbebe-bottomnav { display: none; }
  main.wbebe-main { padding-bottom: 14px; }
}

/* ---------- Reveal animation ---------- */
.wbebe-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.wbebe-reveal.wbebe-visible { opacity: 1; transform: none; }

/* ---------- Desktop tweaks ---------- */
@media (min-width: 431px) {
  body { font-size: 16px; }
  .wbebe-grid { grid-template-columns: repeat(4, 1fr); }
}
