/* ============================================================
   MoonWin Casino — app.css
   Theme: Dark #191a1e + Yellow #fcee20
   ============================================================ */

:root {
  --primary:    #fcee20;
  --primary-dk: #d4c800;
  --bg-dark:    #191a1e;
  --bg-header:  #000000;
  --bg-card:    #1e2026;
  --bg-card-h:  #32343b;
  --text-light: #f4f7fc;
  --text-muted: #b8bdcf;
  --text-dim:   #62666c;
  --border:     #1e2026;
  --border-lt:  rgba(244,247,252,0.08);
  --radius:     8px;
  --radius-sm:  4px;
  --trans:      0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; background: var(--bg-dark); color: var(--text-light); overflow-x: hidden; width: 100%; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em;
  cursor: pointer; border: none; transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #000; }
.btn--primary:hover { background: #ffe800; }
.btn--ghost { background: transparent; color: var(--text-light); border: 1px solid rgba(244,247,252,0.2); }
.btn--ghost:hover { border-color: rgba(244,247,252,0.5); }
.btn--full { width: 100%; justify-content: center; }

/* CTA shimmer button */
.cta-btn {
  position: relative; overflow: hidden;
  background: var(--primary); color: #000;
  padding: 9px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.85rem;
}
.cta-btn:hover { background: #ffe800; }
.cta-btn__shimmer {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ---- HEADER ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid #1e2026;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
}
.header__left { display: flex; align-items: center; gap: 12px; }
.header__right { display: flex; align-items: center; gap: 10px; }

.header__burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.header__burger span { display: block; width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.header__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header__logo-img { height: 36px; width: auto; }
.header__logo-text { font-size: 1rem; font-weight: 900; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }

.top-menu { display: flex; align-items: center; gap: 0; }
.top-menu__link {
  padding: 6px 10px; font-size: 0.8rem; font-weight: 600;
  color: rgba(244,247,252,0.65); letter-spacing: 0.02em;
  transition: color var(--trans); white-space: nowrap;
}
.top-menu__link:hover { color: var(--text-light); }

.header__search-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(244,247,252,0.65); display: flex; align-items: center;
  padding: 6px; transition: color var(--trans);
}
.header__search-btn:hover { color: var(--text-light); }

/* ---- LANGUAGE SELECT ---- */
.lang-select { position: relative; }
.lang-select__btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 5px 9px;
  cursor: pointer; color: var(--text-muted);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  white-space: nowrap;
}
.lang-select__btn:hover,
.lang-select.open .lang-select__btn {
  background: rgba(252,238,32,0.08); border-color: rgba(252,238,32,0.3);
  color: var(--primary);
}
.lang-select__globe { flex-shrink: 0; opacity: 0.7; }
.lang-select__arrow { flex-shrink: 0; transition: transform var(--trans); }
.lang-select.open .lang-select__arrow { transform: rotate(180deg); }
.lang-select__dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 148px; background: #111216;
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  padding: 4px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lang-select.open .lang-select__dropdown { display: block; }
.lang-select__option {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: background var(--trans), color var(--trans);
}
.lang-select__option:hover { background: rgba(255,255,255,0.06); color: var(--text-light); }
.lang-select__option--active { color: var(--primary); font-weight: 700; }

@media(max-width:1100px) {
  .top-menu { display: none; }
  .header__burger { display: flex; }
}
@media(max-width:640px) {
  .header__search-btn { display: none; }
  .lang-select__label { display: none; }
  .lang-select__btn { padding: 5px 7px; gap: 3px; }
}

/* ---- MOBILE MENU ---- */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.75); }
.mobile-menu.open { display: block; }
.mobile-menu__panel {
  position: absolute; top: 0; left: 0; width: 280px; height: 100%;
  background: #111216; padding: 72px 20px 32px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  color: rgba(244,247,252,0.75); transition: background var(--trans), color var(--trans);
}
.mobile-menu__link:hover { background: var(--bg-card); color: var(--text-light); }
.mobile-menu__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu__lang {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-lt);
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-lang-option {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: background var(--trans), color var(--trans);
}
.mobile-lang-option:hover { background: var(--bg-card); color: var(--text-light); }
.mobile-lang-option--active { color: var(--primary); font-weight: 700; }

/* ---- SUBHEADER ---- */
.subheader {
  position: sticky; top: 60px; z-index: 90;
  background: #111216;
  border-bottom: 1px solid var(--border);
}
.subheader__inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; padding: 0 14px;
  scrollbar-width: none;
}
.subheader__inner::-webkit-scrollbar { display: none; }
.subheader__item {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; white-space: nowrap; flex-shrink: 0;
  font-size: 0.8rem; font-weight: 600;
  color: rgba(244,247,252,0.6); border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}
.subheader__item:hover { color: var(--text-light); border-color: var(--primary); }
.subheader__icon { width: 18px; height: 18px; color: inherit; }
.subheader__img { width: 18px; height: 18px; object-fit: contain; }
.subheader__item--special { color: var(--primary); }
.subheader__item--special:hover { color: var(--primary-dk); }

/* ---- MAIN LAYOUT ---- */
.layout__main {
  padding-top: 60px; /* header height */
}

/* ---- WINNERS TICKER ---- */
.winners-ticker {
  background: #111216;
  border-bottom: 1px solid var(--border);
  overflow: hidden; height: 44px;
}
.winners-ticker__track {
  display: flex; align-items: center; gap: 0;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap; height: 100%;
}
.winners-ticker__track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.winners-ticker__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; flex-shrink: 0; height: 100%;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background var(--trans);
}
.winners-ticker__item:hover { background: rgba(255,255,255,0.04); }
.winners-ticker__item img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.winners-ticker__user { font-size: 0.75rem; color: var(--text-muted); }
.winners-ticker__game { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.winners-ticker__amount { font-size: 0.78rem; color: var(--primary); font-weight: 700; }
.winners-ticker__multi { font-size: 0.7rem; color: var(--text-dim); background: rgba(255,255,255,0.07); padding: 2px 5px; border-radius: 3px; }

/* ---- HERO BANNER ---- */
.hero-banner { position: relative; background: #000; overflow: hidden; }
.hero-banner__slide { display: block; position: relative; }
.hero-banner__img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.hero-banner__content {
  position: absolute; left: 8%; top: 50%; transform: translateY(-50%);
  max-width: 480px;
}
.hero-banner__title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 900;
  line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em;
  color: #fff; margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-banner__desc {
  font-size: clamp(1rem, 2vw, 1.4rem); color: #fff;
  margin-bottom: 20px; line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.hero-banner__desc strong { color: var(--primary); }
.hero-banner__cta {
  display: inline-block; background: var(--primary); color: #000;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em;
  padding: 12px 32px; border-radius: var(--radius-sm);
  text-transform: uppercase; transition: background var(--trans);
}
.hero-banner__cta:hover { background: #ffe800; }

@media(max-width:640px) {
  .hero-banner__content { left: 5%; right: 5%; }
  .hero-banner__img { max-height: 280px; }
}

/* ---- GAME SECTIONS ---- */
.games-section { padding: 24px 0 8px; }
.games-section__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; margin-bottom: 12px;
}
.games-section__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.games-section__title svg, .games-section__title img {
  color: var(--primary); flex-shrink: 0;
}
.games-section__show-all {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.03em; transition: color var(--trans);
}
.games-section__show-all:hover { color: var(--primary); }

/* ---- GAME ROW ---- */
.games-row {
  display: flex; gap: 16px;
  overflow-x: auto; padding: 0 14px 12px;
  scrollbar-width: none;
}
.games-row::-webkit-scrollbar { display: none; }

/* ---- GAME CARD ---- */
.game-card { flex: 0 0 auto; width: 217px; }
.game-card a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); transition: transform var(--trans); }
.game-card a:hover { transform: translateY(-3px); }
.game-card__img-wrap { position: relative; width: 217px; height: 217px; overflow: hidden; }
.game-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.game-card a:hover .game-card__img-wrap img { transform: scale(1.04); }
.game-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--trans);
}
.game-card a:hover .game-card__overlay { opacity: 1; }
.game-card__play {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #000;
  border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
}
.game-card__label {
  position: absolute; top: 8px; left: 8px;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 4px; text-transform: uppercase;
}
.game-card__label--new { background: #35ec94; color: #000; }
.game-card__label--live { background: #ff157e; color: #fff; }
.game-card__info { padding: 10px 12px 12px; }
.game-card__title {
  font-size: 0.82rem; font-weight: 600; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.game-card__provider { font-size: 0.72rem; color: var(--text-dim); text-transform: capitalize; }

@media(max-width:1024px) {
  .game-card { width: 180px; }
  .game-card__img-wrap { width: 180px; height: 180px; }
}
@media(max-width:768px) {
  .game-card { width: 150px; }
  .game-card__img-wrap { width: 150px; height: 150px; }
}
@media(max-width:480px) {
  .game-card { width: 130px; }
  .game-card__img-wrap { width: 130px; height: 130px; }
}

/* ---- SEO CONTENT SECTION ---- */
.content-section { background: #111216; padding: 60px 0; border-top: 1px solid var(--border); }
.seo-content { max-width: 860px; width: 100%; margin: 0 auto; }
.seo-content h1 { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; color: var(--text-light); }
.seo-content h2 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin: 40px 0 14px; color: var(--text-light); }
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--text-light); text-transform: uppercase;
  letter-spacing: 0.04em; margin: 0; cursor: pointer;
  padding: 14px 0; border-bottom: 1px solid var(--border-lt);
  transition: color var(--trans);
}
.seo-content h3.faq-open { color: var(--primary); }
.seo-content h3 + p { display: none; padding: 12px 0; margin-bottom: 0; }
.seo-content h3.faq-open + p { display: block; }
.seo-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 20px 0 8px; }
.seo-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.seo-content strong { color: var(--text-light); }
.seo-content img { width: 100%; max-width: 700px; border-radius: var(--radius); margin: 24px 0; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; background: var(--bg-card) !important; border: 1px solid var(--border-lt); }
.seo-content th { background: rgba(255,255,255,0.08) !important; color: var(--text-light); padding: 10px 14px; text-align: left; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.seo-content td { background: var(--bg-card) !important; padding: 10px 14px; border-bottom: 1px solid var(--border-lt); color: var(--text-muted); vertical-align: top; }
.seo-content tr:nth-child(even) td { background: rgba(255,255,255,0.03) !important; }
.seo-content ul, .seo-content ol { margin: 0 0 16px 20px; }
.seo-content li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }
.seo-content li strong { color: var(--text-light); }

/* ---- FOOTER ---- */
.footer { background: #0d0e11; border-top: 1px solid var(--border); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 20px; padding: 32px 20px;
  border-bottom: 1px solid var(--border);
  max-width: 1280px; margin: 0 auto;
}
.footer__logo { display: flex; align-items: center; gap: 8px; }
.footer__logo-img { height: 32px; width: auto; }
.footer__logo-text { font-size: 1rem; font-weight: 900; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }
.footer__responsibility { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__resp-logo { height: 28px; width: auto; opacity: 0.7; filter: brightness(0) invert(1); transition: opacity var(--trans); }
.footer__resp-logo:hover { opacity: 1; }

.footer__middle {
  max-width: 1280px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.footer-menu__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; }
.footer-menu ul { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { font-size: 0.82rem; color: var(--text-muted); transition: color var(--trans); }
.footer-menu a:hover { color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border); padding: 20px;
  text-align: center; max-width: 1280px; margin: 0 auto;
}
.footer__bottom p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.6; }

@media(max-width:900px) { .footer__middle { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .footer__middle { grid-template-columns: 1fr; } }
@media(max-width:640px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
}
