/* =============================================================
   FS CASINO — Shared dark theme (Vulkanbet-style)
   Red primary buttons | Blue accent | Full responsive layout
   ============================================================= */

/* --- 1. Design tokens (dark theme) --- */
:root {
  --bg-base: #0d0e18;
  --bg-surface: #13142a;
  --bg-card: #1a1b32;
  --bg-header: #1565ff;
  --color-primary: #e01020;
  --color-primary-h: #c90c1b;
  --color-accent: #1565ff;
  --color-accent-h: #0d50d4;
  --text-main: #e8e9f4;
  --text-muted: #8e90ad;
  --text-faint: #5a5c7a;
  --text-link: #5b8fff;
  --border: rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-btn: 0 4px 14px rgba(224, 16, 32, 0.35);
  --transition: 0.2s ease;
}

/* --- 2. Reset & mobile viewport fix --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }

.container { max-width: 1100px; margin-inline: auto; padding-inline: 16px; }
.container-wide { max-width: 1320px; margin-inline: auto; padding-inline: 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--color-accent); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* --- 3. Buttons (conversion classes) --- */
.btn, .slot-play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover, .slot-play-btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary, .slot-play-btn.btn-primary {
  background: var(--color-primary); color: #fff; box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .slot-play-btn.btn-primary:hover { background: var(--color-primary-h); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.1); color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }

.btn-xl { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; justify-content: center; }
.cta-final { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* --- 4. Header --- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; flex-wrap: wrap;
}

.site-logo img { height: 38px; width: auto; }

.site-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.85);
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255, 255, 255, 0.18); color: #fff; text-decoration: none;
}

.header-actions {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}

.lang-switcher { display: flex; gap: 4px; }
.lang-switcher button {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.lang-switcher button.active, .lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
}

/* --- 5. Mobile navigation --- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.65);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 88vw);
  background: var(--bg-surface); padding: 20px;
  overflow-y: auto;
}
.mobile-nav-close {
  background: none; border: none; color: var(--text-main);
  font-size: 1.4rem; cursor: pointer; margin-bottom: 16px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-links a {
  padding: 12px; border-radius: var(--radius-sm); color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.mobile-lang { margin-bottom: 16px; }

/* --- 6. Hero banner with semi-transparent CTA --- */
/* Height follows banner aspect ratio (~1920×520); overlay is absolute so it does not stretch the section */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: clamp(320px, 36vw, 640px);
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.35);
}

.hero-cta-block {
  background: rgba(13, 14, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-badge {
  display: inline-block; margin-bottom: 12px;
  color: #7aa8ff; font-weight: 700; font-size: 0.9rem;
}

.hero-subtitle {
  color: var(--text-muted); margin-bottom: 20px; font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- 7. Popular slots (6 columns, rounded, full size) --- */
.popular-slots {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.section-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 20px;
  color: var(--text-main); text-align: center;
}

.slots-grid {
  display: grid; gap: 12px; justify-content: center;
}

.slots-grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.slot-card {
  display: block; border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--transition);
}
.slot-card:hover { transform: translateY(-3px); text-decoration: none; }
.slot-card img {
  width: 100%; height: auto; border-radius: var(--radius-md);
  object-fit: cover;
}

.inline-slots {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; justify-content: center;
}
.inline-slots img { border-radius: var(--radius-md); width: 100px; height: 100px; object-fit: cover; }

/* --- 8. Main content --- */
.main-content { padding: 36px 0 48px; }

.content-area h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px; color: #fff; line-height: 1.25;
}

.content-area h2 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  margin: 28px 0 14px; color: var(--color-accent);
}

.content-figure {
  margin: 24px 0; border-radius: var(--radius-md); overflow: hidden;
}
.content-figure img { width: 100%; height: auto; border-radius: var(--radius-md); }

.content-area h3.faq-q {
  font-size: 1rem; margin-bottom: 8px; color: var(--text-main);
}

.content-area h3.content-subheading {
  font-size: 1.05rem; margin: 20px 0 10px; color: var(--text-main);
}

.step-list {
  margin: 12px 0 20px 1.25rem;
}
.step-list li {
  margin-bottom: 8px; color: var(--text-muted);
}

.content-area p { margin-bottom: 14px; color: var(--text-muted); }
.content-area li { margin-bottom: 8px; color: var(--text-muted); }

.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 28px 0;
}

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px;
}

/* --- 9. Responsive tables --- */
.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 20px 0; border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%; min-width: 480px;
  border-collapse: collapse; font-size: 0.875rem;
}

.data-table th, .data-table td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(21, 101, 255, 0.15);
  color: var(--text-main); font-weight: 600;
}

.data-table th[scope="row"] {
  background: rgba(255, 255, 255, 0.04);
  width: 38%;
}

.data-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

/* --- 10. Breadcrumbs --- */
.breadcrumbs {
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 0.85rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--text-faint); }
.breadcrumbs a { color: var(--text-link); }

/* --- 11. Footer --- */
.site-footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 32px 0; margin-top: auto;
}

.footer-payments {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  align-items: center; margin-bottom: 24px;
}
.footer-payments img {
  height: 32px; width: auto; opacity: 0.85;
  filter: brightness(1.1);
}

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-bottom: 16px;
}
.footer-legal a { color: var(--text-muted); font-size: 0.875rem; }

.footer-copy {
  text-align: center; font-size: 0.78rem; color: var(--text-faint);
}

/* --- 12. Responsive breakpoints --- */
@media (max-width: 1024px) {
  .slots-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 768px) {
  .slots-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Taller ratio on mobile so the banner art stays readable */
  .hero-banner { height: clamp(280px, 62vw, 460px); }
  .hero-cta-block { padding: 18px 14px; max-width: 92%; }
  .hero-subtitle { margin-bottom: 14px; font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .header-inner { min-height: 56px; }
}

@media (max-width: 480px) {
  .slots-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table { min-width: 100%; font-size: 0.78rem; }
  .data-table thead { display: none; }
  .data-table tr {
    display: block; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 8px;
  }
  .data-table td {
    display: flex; justify-content: space-between; gap: 12px;
    border: none; padding: 6px 4px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--text-main); flex-shrink: 0;
  }
}
