/* ============================================================
 * 123bet app - design-aef1.css
 * Mobile-first (max-width 430px). All classes use waef1- prefix.
 * Palette: #ADD8E6 | #87CEEB | #1C2833 | #5F9EA0 | #6F4E37
 * ============================================================ */

:root {
  --waef1-primary: #5F9EA0;
  --waef1-secondary: #87CEEB;
  --waef1-light: #ADD8E6;
  --waef1-bg: #1C2833;
  --waef1-bg-soft: #2a3845;
  --waef1-bg-card: #243240;
  --waef1-text: #f0f7fa;
  --waef1-text-muted: #b8c7d1;
  --waef1-accent: #6F4E37;
  --waef1-gold: #d9b074;
  --waef1-radius: 10px;
  --waef1-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

html { font-size: 62.5%; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--waef1-bg);
  color: var(--waef1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.waef1-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.waef1-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1C2833 0%, #243240 100%);
  border-bottom: 2px solid var(--waef1-primary);
  box-shadow: var(--waef1-shadow);
}
.waef1-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.8rem;
}
.waef1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--waef1-light);
  font-weight: 800;
  font-size: 1.5rem;
  white-space: nowrap;
}
.waef1-logo img { width: 28px; height: 28px; border-radius: 6px; }
.waef1-logo span { color: var(--waef1-gold); }

.waef1-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.waef1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--waef1-radius);
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.waef1-btn:active { transform: scale(0.95); }
.waef1-btn-login {
  background: transparent;
  color: var(--waef1-light);
  border: 1.5px solid var(--waef1-secondary);
}
.waef1-btn-register {
  background: linear-gradient(135deg, var(--waef1-primary), var(--waef1-accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(95,158,160,0.5);
}

.waef1-menu-toggle {
  background: transparent;
  border: none;
  color: var(--waef1-light);
  font-size: 2.2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Navigation menu ---------- */
.waef1-nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--waef1-bg-soft);
}
.waef1-nav-open { max-height: 520px; }
.waef1-nav-menu ul { list-style: none; padding: 0.4rem 1rem 1rem; }
.waef1-nav-menu li a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--waef1-text);
  border-bottom: 1px solid rgba(173,216,230,0.1);
  font-size: 1.4rem;
}
.waef1-nav-menu li a:hover { color: var(--waef1-gold); }

/* ---------- Main ---------- */
.waef1-main { padding-top: 64px; padding-bottom: 80px; }

/* ---------- Hero carousel ---------- */
.waef1-carousel {
  position: relative;
  margin: 1rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--waef1-shadow);
}
.waef1-slides { position: relative; aspect-ratio: 16/9; }
.waef1-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.waef1-slide img { width: 100%; height: 100%; object-fit: cover; }
.waef1-slide-active { opacity: 1; }
.waef1-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.waef1-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer; border: none;
}
.waef1-dot-active { background: var(--waef1-gold); }

/* ---------- Headings ---------- */
.waef1-h1 {
  font-size: 2rem;
  text-align: center;
  margin: 1.4rem 1rem 0.6rem;
  color: var(--waef1-light);
  line-height: 1.3;
}
.waef1-h2 {
  font-size: 1.7rem;
  margin: 1.6rem 1rem 0.8rem;
  color: var(--waef1-gold);
  border-left: 4px solid var(--waef1-primary);
  padding-left: 0.8rem;
}
.waef1-h3 {
  font-size: 1.45rem;
  margin: 1.2rem 1rem 0.5rem;
  color: var(--waef1-secondary);
}
.waef1-section { padding: 0.5rem 1rem 1rem; }
.waef1-lead {
  font-size: 1.35rem;
  color: var(--waef1-text-muted);
  text-align: center;
  padding: 0 1rem 1rem;
}

/* ---------- Promo links ---------- */
.waef1-promo-text {
  color: var(--waef1-gold);
  font-weight: 700;
  cursor: pointer;
}
.waef1-cta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}
.waef1-cta .waef1-btn { padding: 1rem 2rem; font-size: 1.5rem; }

/* ---------- Game section ---------- */
.waef1-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 1rem;
  margin-bottom: 0.4rem;
}
.waef1-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--waef1-bg-soft);
  color: var(--waef1-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.waef1-chip-active {
  background: var(--waef1-primary);
  color: #fff;
  border-color: var(--waef1-gold);
}

.waef1-game-group { margin: 0.5rem 1rem 1.4rem; }
.waef1-game-group h3 {
  font-size: 1.4rem;
  color: var(--waef1-gold);
  margin-bottom: 0.6rem;
  text-transform: capitalize;
}
.waef1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.waef1-game-card {
  background: var(--waef1-bg-card);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(95,158,160,0.3);
  display: block;
  color: var(--waef1-text);
}
.waef1-game-card:active { transform: scale(0.95); }
.waef1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}
.waef1-game-card span {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--waef1-light);
  min-height: 2.5rem;
  overflow: hidden;
}

/* ---------- Cards / features ---------- */
.waef1-card {
  background: var(--waef1-bg-card);
  border-radius: var(--waef1-radius);
  padding: 1.2rem;
  margin: 0.8rem 1rem;
  box-shadow: var(--waef1-shadow);
}
.waef1-card p { margin-bottom: 0.6rem; color: var(--waef1-text-muted); }
.waef1-card p:last-child { margin-bottom: 0; }

.waef1-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 1rem;
}
.waef1-feature {
  background: var(--waef1-bg-card);
  border-radius: 10px;
  padding: 1rem 0.6rem;
  text-align: center;
  border: 1px solid rgba(95,158,160,0.25);
}
.waef1-feature .material-icons,
.waef1-feature .ion {
  font-size: 26px;
  color: var(--waef1-gold);
  margin-bottom: 0.4rem;
}
.waef1-feature h4 { font-size: 1.2rem; color: var(--waef1-light); margin-bottom: 0.3rem; }
.waef1-feature p { font-size: 1.05rem; color: var(--waef1-text-muted); }

/* ---------- RTP table ---------- */
.waef1-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 1rem;
  font-size: 1.2rem;
}
.waef1-table th, .waef1-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(173,216,230,0.15);
}
.waef1-table th { color: var(--waef1-gold); }
.waef1-table td { color: var(--waef1-text-muted); }
.waef1-table tr:hover td { color: var(--waef1-text); }

/* ---------- Testimonials ---------- */
.waef1-testi {
  background: var(--waef1-bg-card);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.6rem 1rem;
  border-left: 3px solid var(--waef1-gold);
}
.waef1-testi .waef1-stars { color: var(--waef1-gold); margin-bottom: 0.3rem; }
.waef1-testi p { color: var(--waef1-text-muted); font-style: italic; margin-bottom: 0.4rem; }
.waef1-testi strong { color: var(--waef1-light); }

/* ---------- Winners ---------- */
.waef1-winners { list-style: none; padding: 0 1rem; }
.waef1-winners li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: var(--waef1-bg-card);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.waef1-winners .waef1-amt { color: var(--waef1-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.waef1-pay { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1rem; }
.waef1-pay span {
  background: var(--waef1-bg-card);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--waef1-light);
  border: 1px solid rgba(95,158,160,0.3);
}

/* ---------- Footer ---------- */
.waef1-footer {
  background: #161f29;
  padding: 1.4rem 1rem 2rem;
  margin-top: 1rem;
  border-top: 2px solid var(--waef1-primary);
}
.waef1-footer-brand { color: var(--waef1-text-muted); font-size: 1.2rem; margin-bottom: 1rem; }
.waef1-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
}
.waef1-footer-links a {
  color: var(--waef1-light);
  font-size: 1.15rem;
  text-decoration: underline;
}
.waef1-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.waef1-footer-copy {
  color: var(--waef1-text-muted);
  font-size: 1.1rem;
  border-top: 1px solid rgba(173,216,230,0.1);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.waef1-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #243240, #161f29);
  border-top: 2px solid var(--waef1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
}
.waef1-bnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--waef1-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.waef1-bnav-btn .material-icons,
.waef1-bnav-btn .fas,
.waef1-bnav-btn .ion {
  font-size: 24px;
}
.waef1-bnav-btn:active { transform: scale(0.9); }
.waef1-bnav-btn:hover { color: var(--waef1-secondary); }
.waef1-bnav-active { color: var(--waef1-gold); }
.waef1-bnav-active .material-icons,
.waef1-bnav-active .fas,
.waef1-bnav-active .ion { color: var(--waef1-gold); }

/* ---------- Back to top ---------- */
.waef1-back-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--waef1-primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}
.waef1-back-visible { opacity: 1; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .waef1-bnav { display: none; }
  .waef1-wrapper { max-width: 760px; }
  .waef1-header-inner { max-width: 760px; }
  .waef1-grid { grid-template-columns: repeat(5, 1fr); }
  .waef1-main { padding-bottom: 40px; }
}

@media (max-width: 768px) {
  .waef1-main { padding-bottom: 80px; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .waef1-grid { grid-template-columns: repeat(4, 1fr); }
}
