/* ============================================================
 * Arion Plus - design-14bd.css
 * Mobile-first (max-width: 430px) casino layout.
 * All custom classes use the `w14bd-` prefix.
 * Palette: #00E5FF | #FF8C00 | #C0C0C0 | #AFEEEE | #80CBC4 | #0D1117
 * ============================================================ */

:root {
  --w14bd-primary: #00E5FF;
  --w14bd-accent: #FF8C00;
  --w14bd-silver: #C0C0C0;
  --w14bd-mint: #AFEEEE;
  --w14bd-teal: #80CBC4;
  --w14bd-bg: #0D1117;
  --w14bd-bg-soft: #131a23;
  --w14bd-card: #18222e;
  --w14bd-text: #F2F7FA;
  --w14bd-text-dim: #9fb2c0;
  --w14bd-border: rgba(0, 229, 255, 0.18);
  --w14bd-radius: 14px;
  --w14bd-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  --w14bd-header-h: 58px;
  --w14bd-bottom-h: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--w14bd-bg);
  color: var(--w14bd-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w14bd-primary); text-decoration: none; }

/* Root font: 62.5% for rem sizing */
html { font-size: 62.5%; }

/* Layout containers */
.w14bd-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.4rem;
  position: relative;
}
.w14bd-container { padding-top: calc(var(--w14bd-header-h) + 1rem); padding-bottom: 2rem; }

/* ---------- Header ---------- */
.w14bd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w14bd-header-h);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid var(--w14bd-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow .25s ease, background .25s ease;
}
.w14bd-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.55); }
.w14bd-header .w14bd-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.w14bd-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.w14bd-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w14bd-brand-name {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(90deg, var(--w14bd-primary), var(--w14bd-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w14bd-header-actions { display: flex; align-items: center; gap: .5rem; }
.w14bd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  border: 0; cursor: pointer;
  font-weight: 700; font-size: 1.3rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  min-height: 36px;
}
.w14bd-btn:active { transform: scale(.96); }
.w14bd-btn-login {
  background: transparent;
  color: var(--w14bd-text);
  border: 1px solid var(--w14bd-border);
}
.w14bd-btn-register {
  background: linear-gradient(135deg, var(--w14bd-accent), #ff6a00);
  color: #1a0f00;
  box-shadow: 0 4px 14px rgba(255, 140, 0, .35);
}
.w14bd-icon-btn {
  background: transparent; border: 1px solid var(--w14bd-border);
  color: var(--w14bd-text); border-radius: 10px;
  width: 38px; height: 38px; font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile drawer menu ---------- */
.w14bd-mobile-menu {
  position: fixed;
  top: var(--w14bd-header-h); right: 0;
  width: 78%; max-width: 320px;
  background: var(--w14bd-bg-soft);
  border-left: 1px solid var(--w14bd-border);
  transform: translateX(110%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 1.2rem .8rem;
  box-shadow: var(--w14bd-shadow);
  height: calc(100vh - var(--w14bd-header-h));
  overflow-y: auto;
}
.w14bd-menu-open { transform: translateX(0); }
.w14bd-backdrop {
  position: fixed; inset: var(--w14bd-header-h) 0 0 0;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.w14bd-menu-open + .w14bd-backdrop { opacity: 1; visibility: visible; }
.w14bd-mobile-menu a {
  display: block;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  color: var(--w14bd-text);
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.w14bd-mobile-menu a:active { background: rgba(0,229,255,.08); }

/* ---------- Hero / Carousel ---------- */
.w14bd-hero { margin: 1rem 0 1.4rem; }
.w14bd-carousel {
  position: relative;
  border-radius: var(--w14bd-radius);
  overflow: hidden;
  box-shadow: var(--w14bd-shadow);
  border: 1px solid var(--w14bd-border);
}
.w14bd-slides { position: relative; }
.w14bd-slide {
  position: relative; display: none; cursor: pointer;
}
.w14bd-slide img { width: 100%; height: 170px; object-fit: cover; }
.w14bd-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(13,17,23,.92), rgba(13,17,23,0));
  font-size: 1.4rem; font-weight: 700;
}
.w14bd-slide-active { display: block; }
.w14bd-dots {
  display: flex; gap: .5rem; justify-content: center;
  padding: .6rem 0;
}
.w14bd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25); cursor: pointer;
}
.w14bd-dot-active { background: var(--w14bd-primary); }
.w14bd-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: var(--w14bd-text);
  border: 0; width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer;
}
.w14bd-carousel-arrow.prev { left: 8px; }
.w14bd-carousel-arrow.next { right: 8px; }

/* ---------- Section titles ---------- */
.w14bd-section { margin: 1.8rem 0; }
.w14bd-section-title {
  font-size: 1.85rem; font-weight: 800; margin: 0 0 1rem;
  display: flex; align-items: center; gap: .6rem;
  color: var(--w14bd-text);
}
.w14bd-section-title i { color: var(--w14bd-accent); font-size: 2rem; }
.w14bd-section-sub { color: var(--w14bd-text-dim); font-size: 1.3rem; margin: -0.6rem 0 1rem; }

/* ---------- Category tabs ---------- */
.w14bd-cat-tabs {
  display: flex; gap: .6rem; overflow-x: auto;
  padding-bottom: .5rem; margin-bottom: 1rem;
  scrollbar-width: none;
}
.w14bd-cat-tabs::-webkit-scrollbar { display: none; }
.w14bd-cat-tab {
  flex: 0 0 auto;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--w14bd-card);
  color: var(--w14bd-text-dim);
  font-size: 1.25rem; cursor: pointer;
  border: 1px solid transparent;
}
.w14bd-cat-tab-active {
  background: linear-gradient(135deg, var(--w14bd-primary), var(--w14bd-teal));
  color: #062028; font-weight: 700;
}

/* ---------- Game grid ---------- */
.w14bd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.w14bd-game {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; cursor: pointer;
  background: var(--w14bd-card);
  border-radius: 12px;
  padding: .6rem .4rem;
  border: 1px solid var(--w14bd-border);
  transition: transform .15s ease, box-shadow .2s ease;
  text-align: center;
}
.w14bd-game:active { transform: scale(.95); }
.w14bd-game img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 10px;
}
.w14bd-game-name {
  font-size: 1.15rem; color: var(--w14bd-text);
  line-height: 1.3rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; width: 100%;
}
.w14bd-game-tag {
  font-size: 1rem; color: var(--w14bd-accent); font-weight: 700;
}

/* ---------- Cards ---------- */
.w14bd-card {
  background: var(--w14bd-card);
  border: 1px solid var(--w14bd-border);
  border-radius: var(--w14bd-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--w14bd-shadow);
}
.w14bd-card h3 {
  margin: 0 0 .6rem; font-size: 1.6rem; color: var(--w14bd-primary);
}
.w14bd-card p { margin: 0 0 .6rem; font-size: 1.3rem; color: var(--w14bd-text-dim); }

/* ---------- Promo banner ---------- */
.w14bd-promo {
  background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(255,140,0,.12));
  border: 1px solid var(--w14bd-border);
  border-radius: var(--w14bd-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}
.w14bd-promo h3 { color: var(--w14bd-primary); font-size: 1.8rem; margin: 0 0 .4rem; }
.w14bd-promo p { color: var(--w14bd-text-dim); font-size: 1.3rem; margin: 0 0 1rem; }

/* Inline affiliate link styling (SEO-friendly text links) */
.w14bd-link {
  color: var(--w14bd-accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- FAQ ---------- */
.w14bd-faq-item {
  background: var(--w14bd-card);
  border: 1px solid var(--w14bd-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: .8rem;
  cursor: pointer;
}
.w14bd-faq-q { font-weight: 700; font-size: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; }
.w14bd-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--w14bd-text-dim); font-size: 1.25rem;
}
.w14bd-faq-open .w14bd-faq-a { max-height: 400px; padding-top: .8rem; }

/* ---------- Testimonials ---------- */
.w14bd-testi {
  background: var(--w14bd-card);
  border-left: 3px solid var(--w14bd-accent);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: .8rem;
}
.w14bd-testi p { margin: 0 0 .4rem; font-size: 1.25rem; color: var(--w14bd-text); }
.w14bd-testi span { color: var(--w14bd-teal); font-size: 1.15rem; font-weight: 700; }

/* ---------- Winners ---------- */
.w14bd-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 1.2rem;
}
.w14bd-winner-row:last-child { border-bottom: 0; }
.w14bd-winner-amount { color: var(--w14bd-accent); font-weight: 800; }

/* ---------- Payment chips ---------- */
.w14bd-pay {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.w14bd-pay span {
  background: var(--w14bd-card);
  border: 1px solid var(--w14bd-border);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: 1.2rem;
  color: var(--w14bd-text-dim);
}

/* ---------- Footer ---------- */
.w14bd-footer {
  background: var(--w14bd-bg-soft);
  border-top: 1px solid var(--w14bd-border);
  padding: 1.6rem 0 calc(var(--w14bd-bottom-h) + 1.4rem);
  margin-top: 1.8rem;
}
.w14bd-footer p { color: var(--w14bd-text-dim); font-size: 1.2rem; line-height: 1.6rem; margin: 0 0 1rem; }
.w14bd-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  margin-bottom: 1rem;
}
.w14bd-footer-links a {
  font-size: 1.15rem; color: var(--w14bd-silver);
  text-decoration: underline;
}
.w14bd-footer-copy { font-size: 1.1rem; color: var(--w14bd-text-dim); }

/* ---------- Mobile bottom navigation ---------- */
.w14bd-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w14bd-bottom-h);
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--w14bd-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.w14bd-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  color: var(--w14bd-text-dim);
  font-size: 1rem;
  transition: color .2s ease, transform .15s ease;
}
.w14bd-bottom-nav a:active { transform: scale(.9); }
.w14bd-bottom-nav a i { font-size: 2.2rem; }
.w14bd-bottom-nav a.w14bd-nav-active { color: var(--w14bd-primary); }
.w14bd-bottom-nav a.w14bd-nav-promo { color: var(--w14bd-accent); }

/* Back-to-top FAB */
.w14bd-to-top {
  position: fixed;
  right: 1.2rem; bottom: calc(var(--w14bd-bottom-h) + 1.2rem);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w14bd-accent);
  color: #1a0f00;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 999;
  box-shadow: var(--w14bd-shadow);
}
.w14bd-to-top-visible { opacity: 1; visibility: visible; }

/* ---------- Desktop / large screen ---------- */
@media (min-width: 769px) {
  .w14bd-bottom-nav { display: none; }
  .w14bd-footer { padding-bottom: 1.6rem; }
  .w14bd-wrapper { max-width: 720px; }
}

/* Mobile bottom padding so content isn't hidden by nav */
@media (max-width: 768px) {
  main.w14bd-main { padding-bottom: calc(var(--w14bd-bottom-h) + 1.4rem); }
}
