/* ===========================================================
   UFABET.MOM clone — Bootstrap 5 theme overrides
   Dark casino look with gold accents
   =========================================================== */
:root {
  --ufa-bg: #0c0c0e;
  --ufa-bg-2: #161619;
  --ufa-bg-3: #1f1f24;
  --ufa-gold: #e9c06a;
  --ufa-gold-2: #c9962f;
  --ufa-text: #e8e8ea;
  --ufa-muted: #a7a7ad;
  --ufa-line: rgba(233, 192, 106, .25);
}

* { scroll-behavior: smooth; }

body {
  background: var(--ufa-bg);
  color: var(--ufa-text);
  font-family: 'Kanit', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

a { text-decoration: none; }

.text-gold { color: var(--ufa-gold) !important; }
.bg-dark-2 { background: var(--ufa-bg-2); }
.bg-dark-3 { background: var(--ufa-bg-3); }

/* keyword links inside paragraphs (original highlights internal links in gold) */
.content p a { color: var(--ufa-gold); font-weight: 400; }
.content p a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn-ufa {
  background: linear-gradient(180deg, var(--ufa-gold), var(--ufa-gold-2));
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: .4rem 1.4rem;
}
.btn-ufa:hover { color: #000; filter: brightness(1.08); }

.btn-outline-ufa {
  border: 1px solid var(--ufa-gold);
  color: var(--ufa-gold);
  font-weight: 500;
  border-radius: 999px;
  padding: .4rem 1.4rem;
}
.btn-outline-ufa:hover { background: var(--ufa-gold); color: #1a1a1a; }

/* ---------- Navbar ---------- */
.ufa-navbar {
  background: rgba(10, 10, 12, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ufa-line);
}
.ufa-navbar .navbar-brand img { height: 46px; width: auto; }
.ufa-search .form-control {
  background: #fff; border: none; border-radius: 999px 0 0 999px;
}
.ufa-search .btn {
  background: var(--ufa-gold); color: #1a1a1a; border-radius: 0 999px 999px 0;
}

/* ---------- Section headings ---------- */
.section-title {
  text-align: center;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.5rem;
  position: relative;
  padding-bottom: .65rem;
}
.section-title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 90px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--ufa-gold), transparent);
}

/* ---------- Hero carousel ---------- */
.hero .carousel-item img { border-radius: 14px; }

/* ---------- Category quick buttons ---------- */
.cat-grid img {
  width: 100%; height: auto; display: block;
  transition: transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.cat-grid a:hover img { transform: translateY(-4px); filter: drop-shadow(0 10px 20px rgba(233,192,106,.35)); }

/* ---------- Banner button grids ---------- */
.banner-grid img {
  width: 100%; height: auto; border-radius: 10px; display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}
.banner-grid a:hover img { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.55); }

/* ---------- Top 10 slots scroller ---------- */
.slot-scroller {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
}
.slot-scroller::-webkit-scrollbar { height: 8px; }
.slot-scroller::-webkit-scrollbar-thumb { background: var(--ufa-gold-2); border-radius: 8px; }
.slot-scroller .slot-card { flex: 0 0 auto; width: 170px; scroll-snap-align: start; }
.slot-scroller .slot-card img {
  width: 100%; border-radius: 12px; transition: transform .18s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.slot-scroller .slot-card:hover img { transform: scale(1.04); }

/* ---------- Content blocks ---------- */
.content { color: var(--ufa-muted); font-weight: 300; line-height: 1.9; }
.content h2, .content h3 { color: #fff; font-weight: 600; }
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--ufa-muted);
}
.feature-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free","FontAwesome"; font-weight: 900;
  position: absolute; left: 0; top: .15rem; color: var(--ufa-gold);
}

/* ---------- Cards (articles / reviews) ---------- */
.post-card {
  background: var(--ufa-bg-2); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; overflow: hidden; height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--ufa-line); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card .card-body { padding: 1rem; }
.post-card .card-title { color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.post-card .meta { color: var(--ufa-muted); font-size: .8rem; }

/* ---------- Tabs ---------- */
.nav-pills .nav-link { color: var(--ufa-muted); border-radius: 999px; font-weight: 400; }
.nav-pills .nav-link.active { background: var(--ufa-gold); color: #1a1a1a; font-weight: 600; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { --bs-accordion-bg: var(--ufa-bg-2); }
.accordion-item { background: var(--ufa-bg-2); border: 1px solid rgba(255,255,255,.07); margin-bottom: .6rem; border-radius: 10px; overflow: hidden; }
.accordion-button { background: var(--ufa-bg-2); color: #fff; font-weight: 400; }
.accordion-button:not(.collapsed) { background: var(--ufa-bg-3); color: var(--ufa-gold); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg); }
.accordion-body { color: var(--ufa-muted); font-weight: 300; line-height: 1.85; }

/* ---------- Tags ---------- */
.tag-cloud a {
  display: inline-block; margin: 3px; padding: .3rem .8rem; font-size: .82rem;
  background: var(--ufa-bg-3); color: var(--ufa-muted); border-radius: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.tag-cloud a:hover { background: var(--ufa-gold); color: #1a1a1a; }

/* ---------- Footer ---------- */
.ufa-footer { background: #08080a; border-top: 1px solid var(--ufa-line); color: var(--ufa-muted); }
.ufa-footer h5 { color: var(--ufa-gold); font-weight: 600; }

/* ---------- Floating contact ---------- */
.float-line {
  position: fixed; right: 16px; bottom: 18px; z-index: 1040; width: 60px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
  .ufa-navbar .navbar-brand img { height: 36px; }
  .section-title { font-size: 1.25rem; }
}

/* ============================================================
   เพิ่มเติม: footer badge + mobile bottom action bar (login/register)
   ============================================================ */
/* footer เมนูแบบ badge */
.footer-badges{ display:flex; flex-wrap:wrap; gap:8px; }
.foot-badge{ display:inline-block; padding:5px 12px; border-radius:999px; font-size:.82rem; line-height:1.3;
  background:rgba(255,255,255,.06); border:1px solid var(--ufa-line,rgba(233,192,106,.25)); color:#e8e8ea; transition:.15s; }
.foot-badge:hover{ background:var(--ufa-gold,#e9c06a); border-color:var(--ufa-gold,#e9c06a); color:#15110a; }

/* MOBILE BOTTOM ACTION BAR */
.mobile-actionbar{ position:fixed; left:0; right:0; bottom:0; z-index:1055; display:flex; gap:8px;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg, rgba(12,12,14,.9), rgba(12,12,14,.98));
  border-top:1px solid var(--ufa-line,rgba(233,192,106,.3)); box-shadow:0 -6px 20px rgba(0,0,0,.5); backdrop-filter:blur(6px); }
.mab-btn{ flex:1; text-align:center; padding:11px 8px; border-radius:10px; font-weight:700; font-size:.95rem; line-height:1.1; box-shadow:0 4px 12px rgba(0,0,0,.4); }
.mab-login{ background:transparent; border:1px solid var(--ufa-gold,#e9c06a); color:var(--ufa-gold,#e9c06a); }
.mab-register{ background:linear-gradient(180deg,#f0cd7a,#d2a443); color:#15110a; border:1px solid #d2a443; }
.mab-btn:active{ transform:translateY(1px); }
@media (max-width:991.98px){
  body{ padding-bottom:72px; }
  .float-line{ bottom:84px !important; }
}
