/* ============================================================
 * BingoFun - design.css
 * Prefix: v41e-
 * Palette:
 *   #1E1E1E  dark base background
 *   #FA8072  salmon primary accent
 *   #FFEBCD  light cream surface
 *   #B8860B  gold secondary accent
 *   #CED4DA  muted neutral
 *   #FF1493  pink hot accent
 * Mobile-first; the main container is capped at max-width: 430px.
 * ============================================================ */

:root {
  --v41e-primary: #FA8072;
  --v41e-bg: #1E1E1E;
  --v41e-text: #FFEBCD;
  --v41e-gold: #B8860B;
  --v41e-muted: #CED4DA;
  --v41e-pink: #FF1493;
  --v41e-card: #2a2a2a;
  --v41e-border: rgba(255, 235, 205, 0.12);
  --v41e-radius: 14px;
  --v41e-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px, per design spec */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--v41e-bg);
  color: var(--v41e-text);
  font-family: "Helvetica Neue", "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 2.4rem; /* 1.5rem line spacing */
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--v41e-pink); }

/* ---------- Layout containers ---------- */
.v41e-wrapper {
  width: 100%;
  max-width: 430px; /* mobile-first primary surface */
  margin: 0 auto;
  position: relative;
  background-color: var(--v41e-bg);
}

.v41e-container {
  width: 100%;
  padding: 0 1.4rem;
}

/* ============================================================
 * Top Header
 * ============================================================ */
.v41e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1E1E1E 0%, #2d1a1a 100%);
  border-bottom: 1px solid var(--v41e-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.v41e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.6rem;
}

.v41e-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.v41e-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--v41e-gold);
}

.v41e-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v41e-primary);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.v41e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v41e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  min-height: 36px;
}

.v41e-btn:active { transform: scale(0.96); }

.v41e-btn-login {
  background: transparent;
  color: var(--v41e-text);
  border: 1px solid var(--v41e-muted);
}

.v41e-btn-register {
  background: linear-gradient(135deg, var(--v41e-primary), var(--v41e-pink));
  color: #1a0a0a;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(250, 128, 114, 0.45);
}

.v41e-hamburger {
  background: transparent;
  border: none;
  color: var(--v41e-text);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* ============================================================
 * Mobile slide-down menu + overlay
 * ============================================================ */
#v41e-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9998;
}

#v41e-menu-overlay.v41e-overlay-active {
  opacity: 1;
  visibility: visible;
}

#v41e-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 78%;
  max-width: 320px;
  background: #181616;
  border-left: 1px solid var(--v41e-border);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 9999;
  padding: 2rem 1.4rem;
  overflow-y: auto;
}

#v41e-mobile-menu.v41e-menu-active {
  transform: translateX(0);
}

.v41e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.v41e-menu-title {
  font-size: 1.7rem;
  color: var(--v41e-primary);
  font-weight: 700;
}

.v41e-menu-close {
  background: transparent;
  border: none;
  color: var(--v41e-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.v41e-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v41e-menu-list li {
  border-bottom: 1px solid var(--v41e-border);
}

.v41e-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.4rem;
  color: var(--v41e-text);
  font-size: 1.45rem;
}

.v41e-menu-list a:hover { color: var(--v41e-primary); }

.v41e-menu-list i { color: var(--v41e-gold); font-size: 1.8rem; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
main { padding-top: 64px; }

.v41e-hero {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--v41e-radius);
  overflow: hidden;
  box-shadow: var(--v41e-shadow);
}

.v41e-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.v41e-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v41e-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v41e-slide-active { opacity: 1; }

.v41e-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.v41e-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 235, 205, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.v41e-dot-active {
  background: var(--v41e-primary);
  transform: scale(1.25);
}

/* ============================================================
 * Section titles
 * ============================================================ */
.v41e-section {
  padding: 1.6rem 0;
}

.v41e-section-title {
  font-size: 1.8rem;
  color: var(--v41e-text);
  margin: 0 0 1rem 0;
  padding-left: 0.8rem;
  border-left: 4px solid var(--v41e-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v41e-section-title .material-icons,
.v41e-section-title i {
  color: var(--v41e-gold);
  font-size: 2.2rem;
}

.v41e-h1 {
  font-size: 2rem;
  line-height: 2.6rem;
  color: var(--v41e-text);
  margin: 1.4rem 0 0.8rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, rgba(250, 128, 114, 0.15), rgba(255, 20, 147, 0.12));
  border-radius: 10px;
  border: 1px solid var(--v41e-border);
}

/* ============================================================
 * Game grid (compact icon layout)
 * ============================================================ */
.v41e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.v41e-game-card {
  background: var(--v41e-card);
  border-radius: 10px;
  padding: 0.5rem;
  border: 1px solid var(--v41e-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.v41e-game-card:active {
  transform: scale(0.94);
  box-shadow: 0 0 0 2px var(--v41e-primary);
}

.v41e-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.v41e-game-name {
  font-size: 1.15rem;
  color: var(--v41e-text);
  line-height: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v41e-cat-heading {
  font-size: 1.45rem;
  color: var(--v41e-primary);
  margin: 1.4rem 0 0.6rem;
  font-weight: 700;
}

/* ============================================================
 * Cards / content blocks
 * ============================================================ */
.v41e-card {
  background: var(--v41e-card);
  border-radius: var(--v41e-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v41e-border);
  box-shadow: var(--v41e-shadow);
}

.v41e-card h2 {
  font-size: 1.55rem;
  margin: 0 0 0.6rem;
  color: var(--v41e-primary);
}

.v41e-card h3 {
  font-size: 1.35rem;
  margin: 1rem 0 0.4rem;
  color: var(--v41e-gold);
}

.v41e-card p { margin: 0 0 0.7rem; color: var(--v41e-text); }

.v41e-card ul { padding-left: 1.8rem; margin: 0.4rem 0; }
.v41e-card li { margin-bottom: 0.4rem; }

.v41e-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--v41e-primary), var(--v41e-pink));
  color: #1a0a0a;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  margin: 0.6rem 0;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(250, 128, 114, 0.45);
}

.v41e-text-link {
  color: var(--v41e-primary);
  font-weight: 700;
}

/* ============================================================
 * Tables (RTP / data)
 * ============================================================ */
.v41e-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}

.v41e-table th,
.v41e-table td {
  padding: 0.6rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--v41e-border);
}

.v41e-table th { color: var(--v41e-gold); }

/* ============================================================
 * Testimonials / winners / payments
 * ============================================================ */
.v41e-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.v41e-pill {
  background: rgba(255, 235, 205, 0.08);
  border: 1px solid var(--v41e-border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 1.2rem;
  color: var(--v41e-text);
}

.v41e-testimonial {
  background: rgba(250, 128, 114, 0.08);
  border-left: 3px solid var(--v41e-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.v41e-testimonial .v41e-quote { font-style: italic; }
.v41e-testimonial .v41e-author {
  display: block;
  margin-top: 0.4rem;
  color: var(--v41e-gold);
  font-size: 1.15rem;
}

/* ============================================================
 * Footer
 * ============================================================ */
.v41e-footer {
  background: #141212;
  padding: 2rem 1.4rem 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--v41e-border);
}

.v41e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.v41e-footer-links a {
  font-size: 1.2rem;
  color: var(--v41e-muted);
}

.v41e-footer-brand { font-size: 1.25rem; color: var(--v41e-text); }
.v41e-copyright { font-size: 1.15rem; color: var(--v41e-muted); margin-top: 0.8rem; }

/* ============================================================
 * Bottom navigation (mobile only)
 * ============================================================ */
.v41e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(180deg, #1E1E1E, #100c0c);
  border-top: 1px solid var(--v41e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.55);
}

.v41e-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v41e-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  font-size: 1rem;
  position: relative;
}

.v41e-bottom-nav-btn i,
.v41e-bottom-nav-btn .material-icons {
  font-size: 22px;
}

.v41e-bottom-nav-btn:active { transform: scale(0.9); }

.v41e-bottom-nav-btn.v41e-nav-current {
  color: var(--v41e-primary);
}

.v41e-bottom-nav-btn.v41e-nav-current::after {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--v41e-primary);
  border-radius: 0 0 3px 3px;
}

.v41e-nav-promo i { color: var(--v41e-gold); }

/* Mobile clearance padding for the fixed bottom bar */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .v41e-footer { padding-bottom: 4rem; }
}

/* Hide bottom nav on desktop; widen the wrapper for larger screens */
@media (min-width: 769px) {
  .v41e-bottom-nav { display: none; }
  .v41e-wrapper { max-width: 760px; }
}

/* Desktop nav helper for the header */
.v41e-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v41e-desktop-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  .v41e-desktop-nav a {
    color: var(--v41e-text);
    font-size: 1.3rem;
  }
}
