/* ============================================
   Template: Casino Mobile-First
   Dark theme + Gold accents
   Based on 777bet.name SEO structure + exbet66 app visuals
   ============================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Inter BlackItalic';
  src: url('../fonts/Inter-BlackItalic.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter MediumItalic';
  src: url('../fonts/Inter-MediumItalic.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter Italic';
  src: url('../fonts/Inter-Italic.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Inter Regular';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-display: swap;
}

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #141b2d;
  --bg-tertiary: #1a2238;
  --bg-card: #1e2a3a;
  --gold: #d4a843;
  --gold-light: #f0d060;
  --gold-dark: #b08930;
  --gold-gradient: linear-gradient(135deg, #d4a843 0%, #f0d060 100%);
  --red: #e74c3c;
  --green: #27ae60;
  --cyan: #00bcd4;
  --white: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #8a95a8;
  --text-muted: #5a6478;
  --border-color: #1e2a3a;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

  /* Typography */
  --h1: 32px 'Inter BlackItalic', sans-serif;
  --h1-mobile: 20px 'Inter BlackItalic', sans-serif;
  --h2: 28px 'Inter BlackItalic', sans-serif;
  --h2-mobile: 18px 'Inter BlackItalic', sans-serif;
  --h3: 20px 'Inter MediumItalic', sans-serif;
  --h3-small: 12px 'Inter MediumItalic', sans-serif;
  --b0: 14px 'Inter Regular', sans-serif;
  --b0-mobile: 13px 'Inter Regular', sans-serif;
  --menu: 14px 'Inter BlackItalic', sans-serif;

  /* Border Radius */
  --br-1: .25rem;
  --br-2: .5rem;
  --br-3: 1rem;
  --br-4: 2rem;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  min-height: 30.28rem;
}

body {
  font: var(--b0);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for sticky bottom */
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

.h1 { font: var(--h1); color: var(--white); margin-bottom: 1rem; }
.h2 { font: var(--h2); color: var(--white); }
.h3 { font: var(--h3); color: var(--white); }
.h3-small { font: var(--h3-small); color: var(--text-secondary); margin-top: 6px; text-align: center; }
.b0 { font: var(--b0); color: var(--text-secondary); }

/* ---- SEO-only (visually hidden, accessible to crawlers) ---- */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yellow, .gold { color: var(--gold-light) !important; }
.white { color: var(--white) !important; }

/* ---- Utility ---- */
.dark-grey-bg {
  background-color: var(--bg-secondary);
  border-radius: var(--br-2);
  padding: 1.25rem;
}

.card-dark {
  background-color: var(--bg-card);
  border-radius: var(--br-2);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.15);
}

/* ---- Navbar ---- */
.navbar {
  background-color: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color);
  padding: .5rem 1rem;
}
.navbar-brand img { width: 60px; }
.navbar-toggler {
  border: 1px solid var(--gold);
  padding: .35rem .5rem;
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4a843' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .nav-link {
  font: var(--menu);
  color: var(--text-secondary) !important;
  padding: .5rem .75rem;
  transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gold) !important;
}

.navbar-collapse {
  background-color: var(--bg-secondary);
}

/* ---- Auth Buttons ---- */
.btn-auth { display: flex; gap: 8px; align-items: center; }

.btn-login {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: var(--menu);
  padding: 6px 16px;
  border-radius: var(--br-4);
  transition: all .2s;
}
.btn-login:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-register {
  background: var(--gold-gradient);
  border: none;
  color: var(--bg-primary);
  font: var(--menu);
  padding: 6px 16px;
  border-radius: var(--br-4);
  position: relative;
  overflow: hidden;
  transition: all .2s;
}
.btn-register:hover {
  filter: brightness(1.1);
  color: var(--bg-primary);
}

/* Shiny button animation */
.btn-register::after {
  content: "";
  position: absolute;
  top: 0;
  left: -300px;
  width: 60px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.4);
  filter: blur(30px);
  transform: skewX(60deg) translateZ(0);
  animation: slideme 3s 10s infinite;
}
@keyframes slideme {
  0% { left: -30px; margin-left: 0; }
  30% { left: 100%; margin-left: 80px; }
  100% { left: 100%; margin-left: 80px; }
}

/* ---- APK Download Button ---- */
.android-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: var(--bg-primary) !important;
  font: var(--menu);
  padding: 6px 14px;
  border-radius: var(--br-4);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.android-app::after {
  content: "";
  position: absolute;
  top: 0;
  left: -300px;
  width: 60px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.4);
  filter: blur(30px);
  transform: skewX(60deg) translateZ(0);
  animation: slideme 3s 15s infinite;
}
.android-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('../img/android.svg') no-repeat center/contain;
}

/* ---- Language Switcher ---- */
.dropdown-language {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  min-width: 140px;
}
.dropdown-language .dropdown-item,
.dropdown-language a {
  color: var(--text-secondary);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-language .dropdown-item:hover,
.dropdown-language a:hover {
  background-color: var(--bg-card);
  color: var(--gold);
}
.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 2px;
  vertical-align: middle;
}
.flag-en { background-image: url('../img/flags/us.svg'); }
.flag-bn { background-image: url('../img/flags/bd.svg'); }
.flag-hi { background-image: url('../img/flags/in.svg'); }
.flag-th { background-image: url('../img/flags/th.svg'); }
.flag-id { background-image: url('../img/flags/id.svg'); }
.flag-fr { background-image: url('../img/flags/fr.svg'); }
.flag-es { background-image: url('../img/flags/es.svg'); }
.flag-ar { background-image: url('../img/flags/sa.svg'); }
.flag-pt { background-image: url('../img/flags/pt.svg'); }
.flag-ru { background-image: url('../img/flags/ru.svg'); }
.flag-de { background-image: url('../img/flags/de.svg'); }
.flag-nl { background-image: url('../img/flags/nl.svg'); }
.flag-el { background-image: url('../img/flags/gr.svg'); }
.flag-it { background-image: url('../img/flags/it.svg'); }
.flag-ro { background-image: url('../img/flags/ro.svg'); }
.flag-sr { background-image: url('../img/flags/rs.svg'); }
.flag-az { background-image: url('../img/flags/az.svg'); }
.flag-bg { background-image: url('../img/flags/bg.svg'); }
.flag-bs { background-image: url('../img/flags/ba.svg'); }
.flag-ca { background-image: url('../img/flags/es.svg'); }
.flag-cs { background-image: url('../img/flags/cz.svg'); }
.flag-da { background-image: url('../img/flags/dk.svg'); }
.flag-et { background-image: url('../img/flags/ee.svg'); }
.flag-fi { background-image: url('../img/flags/fi.svg'); }
.flag-hr { background-image: url('../img/flags/hr.svg'); }
.flag-hu { background-image: url('../img/flags/hu.svg'); }
.flag-hy { background-image: url('../img/flags/am.svg'); }
.flag-is { background-image: url('../img/flags/is.svg'); }
.flag-ja { background-image: url('../img/flags/jp.svg'); }
.flag-ka { background-image: url('../img/flags/ge.svg'); }
.flag-ko { background-image: url('../img/flags/kr.svg'); }
.flag-lt { background-image: url('../img/flags/lt.svg'); }
.flag-lv { background-image: url('../img/flags/lv.svg'); }
.flag-ms { background-image: url('../img/flags/my.svg'); }
.flag-my { background-image: url('../img/flags/my.svg'); }
.flag-no { background-image: url('../img/flags/no.svg'); }
.flag-pl { background-image: url('../img/flags/pl.svg'); }
.flag-pt-BR { background-image: url('../img/flags/br.svg'); }
.flag-sk { background-image: url('../img/flags/sk.svg'); }
.flag-sl { background-image: url('../img/flags/si.svg'); }
.flag-sm { background-image: url('../img/flags/ws.svg'); }
.flag-sv { background-image: url('../img/flags/se.svg'); }
.flag-tr { background-image: url('../img/flags/tr.svg'); }
.flag-uk { background-image: url('../img/flags/ua.svg'); }
.flag-uz { background-image: url('../img/flags/uz.svg'); }
.flag-zh-HK { background-image: url('../img/flags/hk.svg'); }
.flag-zh-TW { background-image: url('../img/flags/tw.svg'); }
.flag-vi { background-image: url('../img/flags/vn.svg'); }
.flag-tl { background-image: url('../img/flags/ph.svg'); }
.flag-zh { background-image: url('../img/flags/cn.svg'); }
.flag-kk { background-image: url('../img/flags/kz.svg'); }
.flag-ky { background-image: url('../img/flags/kg.svg'); }
.flag-ml { background-image: url('../img/flags/in.svg'); }
.flag-ne { background-image: url('../img/flags/np.svg'); }
.flag-so { background-image: url('../img/flags/so.svg'); }
.flag-sw { background-image: url('../img/flags/ke.svg'); }
.flag-tg { background-image: url('../img/flags/tj.svg'); }
.flag-ur { background-image: url('../img/flags/pk.svg'); }
.flag-am { background-image: url('../img/flags/et.svg'); }
.flag-km { background-image: url('../img/flags/kh.svg'); }
.flag-lo { background-image: url('../img/flags/la.svg'); }
.flag-jv { background-image: url('../img/flags/id.svg'); }
.flag-su { background-image: url('../img/flags/id.svg'); }
.flag-fil { background-image: url('../img/flags/ph.svg'); }
.flag-en-GB { background-image: url('../img/flags/gb.svg'); }
/* Mobile language flag button */
.lang-mobile-btn {
  background: transparent !important;
  border: none !important;
  padding: 2px 4px !important;
  line-height: 1;
}
.lang-mobile-btn::after {
  display: none; /* hide dropdown caret on mobile */
}
.lang-mobile-btn .flag-icon {
  width: 24px;
  height: 17px;
}

#languageDropdown {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}
#languageDropdown:hover,
#languageDropdown:focus {
  border-color: var(--gold);
  color: var(--gold);
}
#languageDropdown::after {
  border-top-color: var(--text-secondary);
}

/* ---- Footer Language Select ---- */
.footer select {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  width: 100%;
  max-width: 200px;
}
.footer select:focus {
  border-color: var(--gold);
  outline: none;
}

/* ---- Swiper Carousels (Game Sections) ---- */
.popular-games-swiper,
.fun-games-swiper,
.jili-games-swiper,
.pragmatic-games-swiper,
.other-games-swiper { overflow: hidden; }

.popular-games-swiper .swiper-slide,
.fun-games-swiper .swiper-slide,
.jili-games-swiper .swiper-slide,
.pragmatic-games-swiper .swiper-slide,
.other-games-swiper .swiper-slide {
  cursor: pointer;
  text-align: center;
  padding: 4px 2px;
}
.popular-games-swiper .swiper-slide img,
.fun-games-swiper .swiper-slide img,
.jili-games-swiper .swiper-slide img,
.pragmatic-games-swiper .swiper-slide img,
.other-games-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--br-2);
}
.br-2 { border-radius: var(--br-2); }
.swiper-button-prev,
.swiper-button-next {
  width: 32px;
  height: 32px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  border: 1px solid var(--border-color);
}
.swiper-button-prev::after,
.swiper-button-next::after { content: ''; }
.swiper-button-prev .chevron-left,
.swiper-button-next .chevron-right {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.chevron-left { background-image: url('../img/chevron-left-normal.svg'); }
.chevron-right { background-image: url('../img/chevron-right-normal.svg'); }

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.section-header .view-all {
  font: var(--b0);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-header .view-all .chevron-right {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url('../img/chevron-right-normal.svg') no-repeat center/contain;
}

/* ---- Awards Grid ---- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.awards-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--br-1);
}

/* ---- Partners Row ---- */
.partners {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.partners img {
  height: 32px;
  width: auto;
  opacity: 0.6;
  transition: opacity .2s;
}
.partners img:hover { opacity: 1; }

/* ---- Footer ---- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-bottom: 70px; /* space for sticky panel */
}
.footer .footer-heading {
  font: var(--menu);
  color: var(--gold);
  margin-bottom: .75rem;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer ul li { margin-bottom: .35rem; }
.footer ul li a {
  font: var(--b0);
  color: var(--text-muted);
  transition: color .2s;
}
.footer ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.footer-bottom p {
  font: var(--b0);
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  transition: background-color .2s;
}
.social-icons a:hover { background-color: var(--gold-dark); }
.social-icons img { width: 18px; height: 18px; }

/* ---- Sticky Bottom Panel (Mobile) ---- */
.sticky-bottom-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 15%);
  padding: 12px 16px 8px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.sticky-bottom-panel .btn-login,
.sticky-bottom-panel .btn-register {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border-radius: var(--br-3);
}
.sticky-bottom-panel .btn-apk {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 10px 14px;
  border-radius: var(--br-3);
  font: var(--menu);
  text-decoration: none;
}

/* ---- Paragraph 1 (intro before SEO content) ---- */
.paragraph1-block {
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.paragraph1-block p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ---- SEO Content Area ---- */
.seo-content {
  background-color: var(--bg-secondary);
  border-radius: var(--br-2);
  padding: 1.5rem;
  margin-top: 2rem;
}
.seo-content h2 {
  font: var(--h2);
  color: var(--white);
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.seo-content h3 {
  font: var(--h3);
  color: var(--text-primary);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.seo-content p { color: var(--text-secondary); margin-bottom: .75rem; }
.seo-content ul, .seo-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: .75rem;
}
.seo-content li { margin-bottom: .25rem; }
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.seo-content th {
  background-color: var(--bg-tertiary);
  color: var(--gold);
  padding: 8px 12px;
  text-align: left;
  font: var(--menu);
}
.seo-content td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.seo-content a { color: var(--gold); }
.seo-content a:hover { color: var(--gold-light); text-decoration: underline; }

/* ---- Description Block ---- */
.description { color: var(--text-secondary); }
.description ul { padding-left: 1.5rem; }
.description li { margin-bottom: .25rem; }

/* ---- Bonus Cards ---- */
.bonus-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--br-2);
  padding: 1rem;
  margin-bottom: .75rem;
}
.bonus-card h3 a {
  color: var(--gold);
  font: var(--h3);
  text-decoration: underline;
}
.bonus-card p { color: var(--text-secondary); font: var(--b0); }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  body { font: var(--b0-mobile); }
  .h1 { font: var(--h1-mobile); }
  .h2 { font: var(--h2-mobile); }
  .navbar-brand img { width: 60px; }
  .awards-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .seo-content { padding: 1rem; }
  .seo-content h2 { font: var(--h2-mobile); }

  /* Mobile header: logo left, flag+auth center, burger right */
  .navbar > .container-fluid {
    flex-wrap: nowrap;
    position: relative;
  }
  .navbar > .container-fluid > .d-xl-none {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 1200px) {
  .navbar-brand img { width: 152px; }
  /* Desktop swiper slides larger */
  .swiper-button-prev, .swiper-button-next { width: 40px; height: 40px; }
  .sticky-bottom-panel { display: none !important; }
  body { padding-bottom: 0; }
  .footer { margin-bottom: 0; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Tablet adjustments */
}
