/* ============================================================
   colourgame.homes - Theme CSS (theme-ef84.css)
   All custom classes use the "wef84-" prefix.
   Palette: #E9967A (coral accent) / #2C2C2C (dark bg)
   Mobile-first, main container max-width: 430px.
   ============================================================ */

:root {
  --wef84-primary: #E9967A;
  --wef84-primary-dark: #d27a5c;
  --wef84-primary-soft: #f6c3ae;
  --wef84-bg: #2C2C2C;
  --wef84-bg-2: #1d1d1d;
  --wef84-bg-3: #3a3a3a;
  --wef84-text: #f7e9e2;
  --wef84-text-muted: #c8b9b1;
  --wef84-gold: #f5c97a;
  --wef84-border: rgba(233, 150, 122, 0.25);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--wef84-bg);
  color: var(--wef84-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--wef84-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout */
.wef84-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--wef84-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.wef84-container {
  width: 100%;
  padding: 0 1.2rem;
}

main.wef84-main { padding-bottom: 80px; }

/* ============ HEADER ============ */
.wef84-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(44,44,44,0.98), rgba(44,44,44,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wef84-border);
}
.wef84-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  min-height: 5.4rem;
}
.wef84-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wef84-logo img {
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--wef84-primary);
}
.wef84-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wef84-primary);
  letter-spacing: 0.5px;
}
.wef84-logo-text span { color: var(--wef84-text); }

.wef84-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wef84-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 2.4rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  min-height: 3.6rem;
}
.wef84-btn:active { transform: scale(0.96); }
.wef84-btn-login {
  background: transparent;
  color: var(--wef84-text);
  border: 1px solid var(--wef84-primary);
}
.wef84-btn-register {
  background: linear-gradient(135deg, var(--wef84-primary), var(--wef84-primary-dark));
  color: #2C2C2C;
  box-shadow: 0 4px 12px rgba(233,150,122,0.35);
}

.wef84-menu-toggle {
  background: transparent;
  border: none;
  color: var(--wef84-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Expandable menu */
.wef84-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--wef84-bg-2);
  border-top: 1px solid var(--wef84-border);
}
.wef84-mobile-menu.wef84-menu-open {
  max-height: 480px;
}
.wef84-menu-list {
  list-style: none;
  padding: 0.6rem 0;
  max-width: 430px;
  margin: 0 auto;
}
.wef84-menu-list li a {
  display: block;
  padding: 1.05rem 1.4rem;
  color: var(--wef84-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wef84-menu-list li a i { color: var(--wef84-primary); margin-right: 0.7rem; }
.wef84-menu-list li a:hover { background: rgba(233,150,122,0.08); }

/* ============ HERO / CAROUSEL ============ */
.wef84-hero { margin-top: 5.4rem; }
.wef84-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 1.2rem 1.2rem;
}
.wef84-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
.wef84-carousel-slide {
  min-width: 100%;
  position: relative;
}
.wef84-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.wef84-carousel-slide .wef84-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(44,44,44,0.92));
}
.wef84-carousel-slide .wef84-slide-overlay h2 {
  color: var(--wef84-primary);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.wef84-carousel-slide .wef84-slide-overlay p {
  color: var(--wef84-text);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.wef84-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}
.wef84-carousel-dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.wef84-carousel-dot.wef84-dot-active { background: var(--wef84-primary); }

/* ============ SECTIONS ============ */
.wef84-section { padding: 1.8rem 0; }
.wef84-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.wef84-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wef84-text);
  border-left: 3px solid var(--wef84-primary);
  padding-left: 0.8rem;
}
.wef84-section-title em { color: var(--wef84-primary); font-style: normal; }
.wef84-section-link {
  font-size: 1.2rem;
  color: var(--wef84-primary);
  font-weight: 600;
}

/* Search bar */
.wef84-search {
  display: flex;
  align-items: center;
  background: var(--wef84-bg-2);
  border: 1px solid var(--wef84-border);
  border-radius: 2rem;
  padding: 0.6rem 1rem;
  margin: 0 0 1.2rem;
}
.wef84-search i { color: var(--wef84-primary); margin-right: 0.6rem; font-size: 1.4rem; }
.wef84-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--wef84-text);
  font-size: 1.3rem;
  width: 100%;
}

/* ============ GAME GRID ============ */
.wef84-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.wef84-game-card {
  background: var(--wef84-bg-2);
  border: 1px solid var(--wef84-border);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  text-align: center;
}
.wef84-game-card:hover, .wef84-game-card:active {
  transform: translateY(-2px);
  border-color: var(--wef84-primary);
}
.wef84-game-card img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
}
.wef84-game-card .wef84-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--wef84-text);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category heading */
.wef84-cat-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wef84-primary);
  margin: 1.6rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============ CONTENT BLOCKS ============ */
.wef84-card {
  background: var(--wef84-bg-2);
  border: 1px solid var(--wef84-border);
  border-radius: 1rem;
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.wef84-card h3 {
  font-size: 1.45rem;
  color: var(--wef84-primary);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.wef84-card p {
  color: var(--wef84-text-muted);
  font-size: 1.28rem;
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.wef84-card a { color: var(--wef84-primary); font-weight: 700; }

.wef84-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--wef84-primary), var(--wef84-primary-dark));
  color: #2C2C2C;
  font-weight: 800;
  padding: 0.9rem 1.6rem;
  border-radius: 2.4rem;
  margin: 0.6rem 0;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(233,150,122,0.4);
}

.wef84-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 0.6rem;
}
.wef84-feature {
  background: var(--wef84-bg-3);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
}
.wef84-feature i { color: var(--wef84-primary); font-size: 2rem; }
.wef84-feature span { display: block; color: var(--wef84-text); font-size: 1.15rem; margin-top: 0.3rem; }

/* RTP / stats table */
.wef84-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.wef84-stat {
  background: var(--wef84-bg-3);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
}
.wef84-stat .wef84-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wef84-gold);
}
.wef84-stat .wef84-stat-label { font-size: 1.1rem; color: var(--wef84-text-muted); }

/* Testimonial */
.wef84-testimonial {
  background: var(--wef84-bg-2);
  border-left: 3px solid var(--wef84-primary);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.wef84-testimonial p { color: var(--wef84-text); font-size: 1.25rem; font-style: italic; }
.wef84-testimonial .wef84-author {
  color: var(--wef84-primary);
  font-size: 1.15rem;
  margin-top: 0.3rem;
  font-weight: 700;
}

/* Winners list */
.wef84-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.25rem;
}
.wef84-winner .wef84-win-name { color: var(--wef84-text); }
.wef84-winner .wef84-win-amount { color: var(--wef84-gold); font-weight: 700; }

/* Payment chips */
.wef84-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.wef84-pay {
  background: var(--wef84-bg-3);
  border: 1px solid var(--wef84-border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.15rem;
  color: var(--wef84-text);
}

/* App download CTA */
.wef84-app-cta {
  background: linear-gradient(135deg, rgba(233,150,122,0.18), rgba(233,150,122,0.04));
  border: 1px solid var(--wef84-border);
  border-radius: 1rem;
  padding: 1.4rem;
  text-align: center;
}
.wef84-app-cta h3 { color: var(--wef84-primary); margin-bottom: 0.5rem; }
.wef84-app-cta p { color: var(--wef84-text-muted); margin-bottom: 0.8rem; }

/* FAQ */
.wef84-faq { margin-bottom: 0.7rem; }
.wef84-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--wef84-text);
  font-size: 1.3rem;
  padding: 0.8rem 0;
  list-style: none;
}
.wef84-faq summary::-webkit-details-marker { display: none; }
.wef84-faq summary::before { content: "+ "; color: var(--wef84-primary); }
.wef84-faq[open] summary { color: var(--wef84-primary); }
.wef84-faq p { color: var(--wef84-text-muted); font-size: 1.22rem; padding-bottom: 0.6rem; }

/* ============ FOOTER ============ */
.wef84-footer {
  background: var(--wef84-bg-2);
  border-top: 1px solid var(--wef84-border);
  padding: 1.6rem 1.2rem 2rem;
}
.wef84-footer-brand {
  font-size: 1.3rem;
  color: var(--wef84-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.wef84-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wef84-footer-promos button, .wef84-footer-promos a {
  flex: 1 1 auto;
  background: var(--wef84-bg-3);
  color: var(--wef84-primary);
  border: 1px solid var(--wef84-border);
  border-radius: 1.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wef84-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  margin: 0.8rem 0;
}
.wef84-footer-links a {
  color: var(--wef84-text-muted);
  font-size: 1.2rem;
  padding: 0.3rem 0;
}
.wef84-copyright {
  font-size: 1.1rem;
  color: var(--wef84-text-muted);
  text-align: center;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.8rem;
}

/* ============ BOTTOM NAV ============ */
.wef84-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, rgba(29,29,29,0.98), rgba(20,20,20,1));
  border-top: 1px solid var(--wef84-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.wef84-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--wef84-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
  font-family: inherit;
}
.wef84-bottomnav-btn i, .wef84-bottomnav-btn .material-icons-outlined,
.wef84-bottomnav-btn .ion { font-size: 2.2rem; }
.wef84-bottomnav-btn span { font-size: 1.05rem; }
.wef84-bottomnav-btn:active { transform: scale(0.9); }
.wef84-bottomnav-btn.wef84-nav-active { color: var(--wef84-primary); }
.wef84-bottomnav-btn.wef84-nav-promo {
  color: var(--wef84-gold);
}
.wef84-bottomnav-btn.wef84-nav-promo span { color: var(--wef84-gold); }

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .wef84-bottomnav { display: none; }
  .wef84-wrapper { max-width: 430px; }
  main.wef84-main { padding-bottom: 2rem; }
}

/* Desktop top-bar menu toggle hidden on large screens, menu always accessible */
@media (min-width: 769px) {
  .wef84-menu-toggle { display: flex; }
}

/* Helper visibility */
.wef84-hide { display: none !important; }

/* List reset for inline links */
.wef84-inline-links a {
  color: var(--wef84-primary);
  font-weight: 700;
}
