/* ============================================================
 * jilibibi.homes - design.css
 * Mobile-first gaming portal stylesheet.
 * All custom classes use the we407- prefix (CSS variable prefix --we407-).
 * Root font-size: 62.5% => 1rem = 10px for easy rem math.
 * Palette: #00CED1 | #FDF5E6 | #DEB887 | #ADB5BD | #CD853F | #2D2D2D
 * ============================================================ */

:root {
  --we407-primary: #00CED1;
  --we407-primary-dark: #01989b;
  --we407-bg: #2D2D2D;
  --we407-bg-alt: #1f1f1f;
  --we407-card: #3a3a3a;
  --we407-text: #FDF5E6;
  --we407-muted: #ADB5BD;
  --we407-accent: #CD853F;
  --we407-accent-soft: #DEB887;
  --we407-border: rgba(253, 245, 230, 0.12);
  --we407-radius: 1.2rem;
  --we407-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.45);
  --we407-header-h: 6rem;
  --we407-bottomnav-h: 6.4rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--we407-bg);
  color: var(--we407-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--we407-primary); text-decoration: none; }

.we407-no-scroll { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.we407-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.we407-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.we407-grid {
  display: grid;
  gap: 1rem;
}

/* ---------- Header ---------- */
.we407-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--we407-header-h);
  background: linear-gradient(135deg, #1f1f1f 0%, #2D2D2D 100%);
  border-bottom: 0.2rem solid var(--we407-primary);
  box-shadow: var(--we407-shadow);
  z-index: 1000;
}

.we407-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.we407-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--we407-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.05rem;
}

.we407-logo img {
  width: 3rem; height: 3rem; border-radius: 0.6rem;
  border: 0.15rem solid var(--we407-primary);
}

.we407-logo .we407-logo-accent { color: var(--we407-primary); }

.we407-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.we407-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 4rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.we407-btn-primary {
  background: linear-gradient(135deg, var(--we407-primary) 0%, var(--we407-primary-dark) 100%);
  color: #0d2a2b;
}

.we407-btn-accent {
  background: linear-gradient(135deg, var(--we407-accent) 0%, #a76229 100%);
  color: var(--we407-text);
}

.we407-btn-ghost {
  background: transparent;
  color: var(--we407-text);
  border: 0.15rem solid var(--we407-primary);
}

.we407-menu-toggle {
  background: transparent;
  border: 0.15rem solid var(--we407-border);
  color: var(--we407-primary);
  width: 4rem; height: 4rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile slide-down menu ---------- */
.we407-mobile-menu {
  position: fixed;
  top: var(--we407-header-h);
  left: 0; right: 0;
  background: var(--we407-bg-alt);
  border-bottom: 0.2rem solid var(--we407-primary);
  padding: 1rem 1.4rem 1.5rem;
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: calc(100vh - var(--we407-header-h));
  overflow-y: auto;
}

.we407-mobile-menu.we407-menu-open { transform: translateY(0); }

.we407-menu-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 0.6rem;
  color: var(--we407-text);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 0.1rem solid var(--we407-border);
}

.we407-menu-link i, .we407-menu-link span.material-icons-outlined {
  color: var(--we407-primary);
  font-size: 1.8rem;
}

.we407-menu-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.we407-menu-cta .we407-btn { flex: 1; }

/* ---------- Main padding (header + bottom nav clearance) ---------- */
main.we407-main {
  padding-top: calc(var(--we407-header-h) + 0.5rem);
  padding-bottom: calc(var(--we407-bottomnav-h) + 1.5rem);
}

/* ---------- Section / titles ---------- */
.we407-section { padding: 2rem 0 0.5rem; }

.we407-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--we407-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 0.35rem solid var(--we407-primary);
}

.we407-section-title .material-icons-outlined { color: var(--we407-accent-soft); font-size: 2rem; }

.we407-subtitle {
  color: var(--we407-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ---------- Carousel ---------- */
.we407-carousel {
  position: relative;
  border-radius: var(--we407-radius);
  overflow: hidden;
  box-shadow: var(--we407-shadow);
  margin-top: 0.5rem;
}

.we407-slide {
  position: relative;
  display: none;
  cursor: pointer;
}

.we407-slide.we407-slide-active { display: block; }

.we407-slide img { width: 100%; height: 18rem; object-fit: cover; }

.we407-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: var(--we407-text);
}

.we407-slide-caption h2 { font-size: 1.6rem; font-weight: 800; }
.we407-slide-caption p { font-size: 1.2rem; color: var(--we407-muted); }

.we407-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: var(--we407-text);
  border: none;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
}

.we407-carousel-arrow.we407-prev { left: 0.8rem; }
.we407-carousel-arrow.we407-next { right: 0.8rem; }

.we407-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.we407-dot {
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: rgba(253,245,230,0.45);
  border: none; cursor: pointer;
}

.we407-dot.we407-dot-active { background: var(--we407-primary); }

/* ---------- Search box ---------- */
.we407-search {
  margin: 1.2rem 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--we407-card);
  border: 0.15rem solid var(--we407-border);
  border-radius: 0.8rem;
  padding: 0.4rem 0.9rem;
}

.we407-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--we407-text);
  font-size: 1.35rem;
  padding: 0.7rem 0;
  outline: none;
}

/* ---------- Game grid ---------- */
.we407-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.we407-game-card {
  background: var(--we407-card);
  border-radius: 0.9rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 0.12rem solid var(--we407-border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.we407-game-card:active { transform: scale(0.96); border-color: var(--we407-primary); }

.we407-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}

.we407-game-name {
  font-size: 1.1rem;
  color: var(--we407-text);
  padding: 0.45rem 0.3rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.we407-game-hidden { display: none !important; }

/* ---------- Category chip ---------- */
.we407-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 206, 209, 0.12);
  color: var(--we407-primary);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

/* ---------- Generic card ---------- */
.we407-card {
  background: var(--we407-card);
  border-radius: var(--we407-radius);
  padding: 1.4rem;
  box-shadow: var(--we407-shadow);
  border: 0.1rem solid var(--we407-border);
}

.we407-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--we407-primary); }
.we407-card p { color: var(--we407-muted); font-size: 1.3rem; line-height: 1.7rem; }

/* ---------- Feature / step list ---------- */
.we407-list { list-style: none; }
.we407-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  color: var(--we407-text);
  font-size: 1.3rem;
  border-bottom: 0.1rem dashed var(--we407-border);
}
.we407-list li:last-child { border-bottom: none; }
.we407-list li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--we407-accent);
  position: absolute;
  left: 0; top: 0.85rem;
  font-size: 1.2rem;
}

/* ---------- RTP data table ---------- */
.we407-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.we407-rtp-table th, .we407-rtp-table td {
  border-bottom: 0.1rem solid var(--we407-border);
  padding: 0.7rem 0.4rem;
  text-align: left;
}
.we407-rtp-table th { color: var(--we407-primary); font-weight: 700; }
.we407-rtp-table td .we407-bar {
  display: inline-block;
  height: 0.7rem;
  border-radius: 0.4rem;
  background: linear-gradient(90deg, var(--we407-primary), var(--we407-accent));
}

/* ---------- Testimonial ---------- */
.we407-testimonial {
  background: var(--we407-card);
  border-left: 0.3rem solid var(--we407-accent);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.we407-testimonial p { font-size: 1.25rem; color: var(--we407-text); }
.we407-testimonial .we407-author { font-size: 1.1rem; color: var(--we407-primary); margin-top: 0.4rem; }

/* ---------- Payment grid ---------- */
.we407-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.we407-pay-grid .we407-pay {
  background: var(--we407-card);
  border-radius: 0.6rem;
  padding: 0.7rem 0.3rem;
  text-align: center;
  font-size: 1rem;
  color: var(--we407-muted);
  border: 0.1rem solid var(--we407-border);
}
.we407-pay i { font-size: 1.6rem; color: var(--we407-primary); display: block; margin-bottom: 0.3rem; }

/* ---------- Winner ticker ---------- */
.we407-winner {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 0.1rem solid var(--we407-border);
  font-size: 1.2rem;
}
.we407-winner .we407-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--we407-primary), var(--we407-accent));
  display: flex; align-items: center; justify-content: center;
  color: #0d2a2b; font-weight: 800;
}
.we407-winner .we407-amount { margin-left: auto; color: var(--we407-accent-soft); font-weight: 800; }

/* ---------- CTA banner ---------- */
.we407-cta {
  background: linear-gradient(135deg, var(--we407-primary) 0%, var(--we407-primary-dark) 100%);
  border-radius: var(--we407-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  color: #0d2a2b;
  margin: 1.5rem 0;
}
.we407-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.we407-cta p { font-size: 1.25rem; margin-bottom: 1rem; color: #0a1f20; }
.we407-cta .we407-btn { background: #2D2D2D; color: var(--we407-primary); }

/* ---------- Inline promo link ---------- */
.we407-promo-link {
  color: var(--we407-primary);
  font-weight: 800;
  cursor: pointer;
  border-bottom: 0.15rem dotted var(--we407-primary);
}

/* ---------- Footer ---------- */
.we407-footer {
  background: var(--we407-bg-alt);
  border-top: 0.2rem solid var(--we407-primary);
  padding: 2rem 0 1.5rem;
  margin-top: 1.5rem;
}

.we407-footer-brand { color: var(--we407-muted); font-size: 1.2rem; line-height: 1.7rem; margin-bottom: 1rem; }

.we407-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}

.we407-footer-links a {
  color: var(--we407-text);
  font-size: 1.15rem;
}

.we407-footer-cta { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.we407-footer-cta .we407-btn { flex: 1; min-width: 12rem; }

.we407-footer-copy {
  border-top: 0.1rem solid var(--we407-border);
  padding-top: 1rem;
  text-align: center;
  color: var(--we407-muted);
  font-size: 1.1rem;
}

/* ---------- Mobile bottom navigation ---------- */
.we407-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--we407-bottomnav-h);
  background: linear-gradient(180deg, #2D2D2D 0%, #1a1a1a 100%);
  border-top: 0.2rem solid var(--we407-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1.2rem rgba(0,0,0,0.4);
}

.we407-nav-item {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--we407-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.we407-nav-item i, .we407-nav-item .material-icons-outlined {
  font-size: 2.2rem;
}

.we407-nav-item:active { transform: scale(0.92); }

.we407-nav-item.we407-nav-active { color: var(--we407-primary); }

.we407-nav-item.we407-nav-promo { color: var(--we407-accent-soft); }

.we407-nav-item .we407-nav-badge {
  position: absolute;
  margin-left: 2.4rem;
  margin-top: -1rem;
  background: var(--we407-accent);
  color: var(--we407-text);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.8rem;
  padding: 0.05rem 0.4rem;
}

/* ---------- Desktop behaviour ---------- */
@media (min-width: 769px) {
  body { background: #181818; }
  .we407-bottom-nav { display: none; }
  main.we407-main { padding-bottom: 2rem; }
}

/* ---------- Small screens fine-tune ---------- */
@media (max-width: 360px) {
  .we407-game-grid { grid-template-columns: repeat(2, 1fr); }
  .we407-logo { font-size: 1.4rem; }
}
