/* ===== GOATBET999 clone — HTML + Bootstrap 5 =====
   Custom theme styles. Layout/grid handled by Bootstrap 5. */

:root {
  --gb-red: #e3001b;
  --gb-red-dark: #8a0010;
  --gb-maroon: #2a0507;
  --gb-gold: #f5c451;
  --gb-gold-2: #ffe3a0;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Kanit', 'Athiti', system-ui, -apple-system, sans-serif;
  color: #fff;
  background-color: #14080a;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(150, 8, 20, .35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(120, 6, 16, .30), transparent 50%),
    linear-gradient(180deg, #2a0507 0%, #16080a 40%, #0d0405 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: #0a0506;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  padding: 7px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-bar i { margin-right: 8px; }

/* ---------- Header / menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
}
.header-inner {
  position: relative;
}

/* desktop menu: cells centered, equal transparent gaps both sides */
.main-menu {
  display: flex;
  width: 65%;
  margin: 0 auto;
}
.menu-cell {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #541001 0%, #240701 100%);
  border-left: 1px solid #000;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  padding: 13px 4px;
  text-align: center;
  white-space: nowrap;
  transition: filter .2s, color .2s;
}
.menu-cell:last-child { border-right: 1px solid #000; }
.menu-cell i { font-size: 18px; color: #fff; }
.menu-cell:hover { filter: brightness(1.45); color: var(--gb-gold); }
.menu-cell:hover i { color: var(--gb-gold); }
.menu-cell.active { color: var(--gb-gold); }
.menu-cell.active i { color: var(--gb-gold); }

/* register / login image buttons overlapping below menu, centered */
.auth-buttons-desktop {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -12%);
  z-index: 5;
  gap: 0;
}
.auth-buttons img { height: 56px; width: auto; display: block; transition: filter .2s; }
.auth-buttons a:hover img { filter: brightness(1.12); }
.auth-buttons-desktop .auth-reg img { margin-right: -2px; }

/* mobile bar */
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(90deg, #541001, #240701);
}
.mobile-bar .m-logo { max-height: 46px; }
.menu-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  color: #fff;
  font-size: 1.3rem;
  padding: 4px 12px;
}

/* ---------- Floating contact button ---------- */
.floating-contact {
  position: fixed;
  right: 16px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 1045;
}
.floating-contact a {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, #ff2436 0%, #a8000f 100%);
  color: #fff;
  font-weight: 600;
  font-size: .98rem;
  padding: 12px 20px;
  border: 2px solid var(--gb-gold);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 14px rgba(245,196,81,.35);
  text-decoration: none;
  animation: contactPulse 2.2s ease-in-out infinite;
}
.floating-contact i { color: var(--gb-gold); font-size: 1.15rem; }
.floating-contact a:hover { filter: brightness(1.12); color: #fff; }
@keyframes contactPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url('../img/TOP-BG-BANNER_00000.png') center top / cover no-repeat;
  padding: 40px 0 70px;
  min-height: 560px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,4,6,.15) 0%, rgba(13,4,5,.85) 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

/* ----- Hero 2 ฝั่ง: โลโก้ (ซ้าย) + คำโปรย (ขวา) ----- */
.hero-split { min-height: 420px; }
.hero-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px;
}
.hero-logo {
  max-width: 100%;
  max-height: 320px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-desc {
  color: #ffe3a0;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  margin-bottom: 8px;
}
@media (max-width: 991px) {
  .hero-logo { max-height: 220px; }
  .hero-desc { font-size: 1.4rem; }
}
.btn-readmore {
  background: linear-gradient(180deg, #ff2436 0%, #a8000f 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
  border: 1px solid #ff7780;
}
.btn-readmore:hover { filter: brightness(1.12); color: #fff; }

/* ---------- Section helpers ---------- */
.section { padding: 38px 0; }
.section-title {
  text-align: center;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.section-title span { color: var(--gb-gold); }
.section-sub { text-align: center; color: #d8a9ad; margin-bottom: 26px; }

/* ---------- Category cards ---------- */
.cat-card { display: block; transition: transform .25s; }
.cat-card:hover { transform: translateY(-8px); }
.cat-card img { width: 100%; height: auto; display: block; border-radius: 14px; }

/* ---------- Brand logos ---------- */
.brand-strip {
  background: rgba(0,0,0,.30);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 26px 0;
}
.brand-strip .swiper-slide { display: flex; align-items: center; justify-content: center; }
.brand-strip img { max-height: 46px; width: auto; opacity: .92; transition: opacity .2s; }
.brand-strip img:hover { opacity: 1; }

/* ---------- Promotions ---------- */
.promo-card img { border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }

/* ---------- Ranking / featured games ---------- */
.rank-box {
  background: linear-gradient(180deg, rgba(40,8,10,.85), rgba(15,5,6,.9));
  border: 1px solid rgba(255,80,90,.18);
  border-radius: 14px;
  padding: 16px;
}
.rank-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 8px;
  background: rgba(255,255,255,.03);
  margin-bottom: 8px; font-size: .9rem;
}
.rank-row .user { color: #e9c2c5; }
.rank-row .win { color: #59d27e; font-weight: 600; }
.rank-row .lose { color: #ff6b6b; font-weight: 600; }
.game-thumb img { border-radius: 12px; transition: transform .25s; }
.game-thumb:hover img { transform: scale(1.05); }

/* ---------- Feature banner ---------- */
.feature-banner img { width: 100%; border-radius: 14px; }

/* ---------- Withdrawal / phones ---------- */
.withdraw-section { text-align: center; padding: 30px 0 10px; }
.withdraw-section h2 { color: var(--gb-red); font-weight: 700; margin: 18px 0 14px; }
.withdraw-section p { color: #d9b9bc; max-width: 1000px; margin: 0 auto; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #1a0608 0%, #0a0304 100%);
  padding: 46px 0 24px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,80,90,.15);
  overflow: hidden;
}
.site-footer .container { position: relative; z-index: 2; }
.footer-logo { max-width: 180px; }
.footer-desc { color: #cda7aa; font-size: .85rem; line-height: 1.7; }
.footer-menu-btn {
  display: block;
  background: linear-gradient(180deg, #2c2c2c, #161616);
  border: 1px solid #4a4a4a;
  color: #fff;
  border-radius: 8px;
  padding: 11px 16px;
  margin-bottom: 12px;
  font-weight: 500;
  text-align: center;
}
.footer-menu-btn:hover { color: var(--gb-gold); border-color: var(--gb-gold); }
/* เมนู footer แบบ badge เล็ก เรียงต่อกัน (แทนปุ่มเต็มแถวเดิม) */
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: #e9c9cc;
  background: linear-gradient(180deg, #2c2c2c, #161616);
  border: 1px solid #4a4a4a;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}
.footer-badge:hover {
  color: var(--gb-maroon);
  border-color: var(--gb-gold);
  background: linear-gradient(180deg, var(--gb-gold-2), var(--gb-gold));
  transform: translateY(-2px);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d8b3b6; font-size: .9rem; }
.footer-links a::before { content: "• "; color: var(--gb-red); }
.footer-links a:hover { color: #fff; }
.app-badge img { height: 44px; }
.bank-strip { max-width: 560px; }
.footer-tag { color: #b98a8d; font-size: .85rem; }

/* ---------- Swiper nav tweaks ---------- */
.swiper { padding-bottom: 8px; }
.swiper-button-next, .swiper-button-prev { color: var(--gb-red); }
.swiper-pagination-bullet-active { background: var(--gb-red); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero { min-height: auto; padding-bottom: 40px; }

  /* mobile dropdown menu */
  .main-menu {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    display: none;
    background: linear-gradient(180deg, #541001, #240701);
    box-shadow: 0 8px 18px rgba(0,0,0,.5);
  }
  .main-menu.open { display: flex; }
  .menu-cell {
    flex: none;
    justify-content: flex-start;
    padding: 14px 22px;
    border-left: none;
    border-top: 1px solid rgba(0,0,0,.4);
  }
  .menu-cell:last-child { border-right: none; }
  /* fixed bottom auth bar (mobile only) */
  .mobile-bottom-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1050;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(26,6,8,.96), rgba(8,2,3,.99));
    box-shadow: 0 -4px 14px rgba(0,0,0,.55);
  }
  .mobile-bottom-bar .mb-btn {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }
  .mobile-bottom-bar img {
    height: 60px;
    width: auto;
    max-width: 100%;
  }
  /* keep footer clear of the fixed bar */
  body { padding-bottom: 84px; }

  /* contact button floats above the fixed bottom bar */
  .floating-contact {
    top: auto;
    bottom: 98px;
    right: 12px;
    transform: none;
  }
  .floating-contact a { padding: 10px 16px; font-size: .88rem; }
}
@media (max-width: 575px) {
  .announce-bar { font-size: .62rem; letter-spacing: 1px; }
  .auth-buttons img { height: 48px; }
}
