/*
  VOX Casino — Dark Theme Stylesheet
  - Mobile-first, responsive layout
  - Semantic component blocks with comments
  - Accessibility: visible focus, sufficient contrast
  - Tables remain full-size; mobile uses horizontal scroll wrappers
  - Mobile "screen lock" approach: disable zoom (via meta), prevent horizontal overflow here
*/

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #e6ecf2;
  background-color: #0b0f14;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll to mimic locked screen on mobile */
}

:root {
  --bg: #0b0f14;
  --bg-elev: #121823;
  --bg-elev-2: #0f141d;
  --text: #e6ecf2;
  --muted: #a4b0be;
  --primary: #7c5cff;  /* brand accent */
  --secondary: #1f6feb; /* secondary action */
  --accent: #16c47f;   /* success CTA */
  --danger: #ff6b6b;
  --border: #233041;
  --shadow: 0 6px 24px rgba(0,0,0,0.32);
  --radius: 12px;
  --radius-sm: 8px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #b9c9ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible focus for keyboard users */
:focus {
  outline: 3px solid rgba(124, 92, 255, 0.6);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 56px 0; }
.slots-section { margin-top: 24px; }
.section + .section { border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 8%, transparent); }

.lead { font-size: 1.125rem; color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }

/* Skip link appears when focused */
.skip-link {
  position: absolute; left: 8px; top: -40px;
  background: #000; color: #fff; padding: 8px 12px; border-radius: var(--radius-sm);
  transition: top .2s ease;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ---------- Header & Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,15,20,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand img { width: 92px; height: auto; }

/* Primary nav removed per requirements */

.header-ctas { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent; box-shadow: var(--shadow);
  font-weight: 600; line-height: 1; transition: transform .06s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #0b0f14; }
.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #182130; }

.btn-accent { background: var(--accent); color: #091014; }
.btn-accent:hover { filter: brightness(1.05); }

.btn-lg { padding: 12px 18px; font-size: 1rem; border-radius: var(--radius); }
.header-ctas .btn { padding: 6px 10px; font-size: 0.9rem; border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-media { position: relative; overflow: hidden; max-height: 64vh; }
.hero-media picture { display: block; position: relative; }
.hero-media picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,20,0.25) 0%, rgba(11,15,20,0.6) 50%, rgba(11,15,20,0.92) 85%, rgba(11,15,20,1) 100%); pointer-events: none; }
.hero-media img { width: 100%; height: auto; object-fit: cover; display: block; filter: saturate(0.95) contrast(1.05); }
.hero-content { position: relative; margin-top: -220px; }
.hero-content h1 { margin: 0 0 8px 0; color: #ffffff; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.hero-content .lead { max-width: 70ch; color: #f1f5ff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.btn-accent.hero-cta { position: relative; }
.btn-accent.hero-cta::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px rgba(9,16,20,0.45), 0 8px 30px rgba(0,0,0,0.45); pointer-events: none; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px 0; }
h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.5vw + 1rem, 2rem); margin-top: 4px; }
h3 { font-size: clamp(1.1rem, 0.8vw + 1rem, 1.3rem); color: #d5dff0; }
p { margin: 0 0 14px 0; color: #d1d9e6; }
ul, ol { margin: 0 0 16px 1.2rem; }
li { margin: 6px 0; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.feature-list.with-icons .icon { color: #97a6ff; display: inline-flex; }

/* Compact sections: tighter rhythm */
.compact { padding: 40px 0; }
.compact p { margin-bottom: 10px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.info-list.with-icons .icon { color: #7ee0b8; display: inline-flex; }

/* ---------- Steps list ---------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px 0; display: grid; gap: 10px; }
.step-list li { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; position: relative; }
.step-list li::before { counter-increment: step; content: counter(step) "."; color: var(--primary); font-weight: 700; margin-right: 8px; }

/* ---------- Tables (no size reduction on mobile) ---------- */
.table-scroll {
  overflow-x: auto; /* allow horizontal scroll on narrow screens */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-2);
}

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.data-table thead th { position: sticky; top: 0; background: #121a27; z-index: 1; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.data-table th[scope="row"] { color: #dfe8ff; white-space: nowrap; }

/* Make the scroll container focusable for a11y and show a subtle hint */
.table-scroll:focus { box-shadow: 0 0 0 3px rgba(124,92,255,0.35) inset; }

/* ---------- Details/Summary (issues accordion) ---------- */
details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] { background: #141c29; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- Dos/Don'ts Grid ---------- */
.dos-donts { display: grid; gap: 16px; grid-template-columns: 1fr; }
.dos-donts > div { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }

/* ---------- CTA Section ---------- */
.cta { text-align: center; }
.cta .btn-lg { margin-top: 10px; }

/* ---------- Section head (title + actions) ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-actions { display: flex; gap: 8px; }

/* ---------- Buttons: small variant ---------- */
.btn-sm { padding: 8px 12px; font-size: 0.95rem; box-shadow: none; }

/* ---------- Slots Grid ---------- */
/* As a fallback for no-JS or very small screens, we keep the grid styles.
   The carousel overrides below create a horizontal row with snap. */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.slot-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .12s ease, box-shadow .2s ease; }
.slot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.slot-link { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; }
.slot-thumb { aspect-ratio: 16/10; background: #0e1520; overflow: hidden; }
.slot-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; padding: 6px; }

.slot-meta { padding: 10px 12px; display: grid; justify-items: center; }
.slot-title { margin: 2px 0 6px 0; font-size: 1rem; line-height: 1.3; color: #eaf0ff; text-align: center; }
.slot-sub { display: none; }

@media (min-width: 720px) {
  .slots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Slots Carousel ---------- */
.carousel-controls { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 10px; }
.carousel-btn {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: #182130; }
.carousel-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.slots-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 28vw, 280px);
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px; /* keeps scrollbar off the card edge */
}

.slots-row .slot-card { scroll-snap-align: start; }

/* Hide default scrollbar on WebKit while preserving accessibility */
.slots-row::-webkit-scrollbar { height: 10px; }
.slots-row::-webkit-scrollbar-thumb { background: #1e2a3a; border-radius: 20px; }
.slots-row::-webkit-scrollbar-track { background: #0d121a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #0c121b; padding: 24px 0; }
.footer-inner { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }

/* Footer payments */
.footer-payments { margin-top: 10px; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.pay-list img { height: 22px; width: auto; filter: grayscale(10%) brightness(0.95); opacity: 0.9; }
.pay-list img:hover { opacity: 1; filter: none; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero-content { margin-top: -240px; }
  .header-inner { padding: 4px 0; }
  .dos-donts { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (max-width: 480px) {
  /* Tighter spacing on very small screens */
  .section { padding: 44px 0; }
  .header-inner { gap: 10px; }
  /* Move buttons slightly toward the center */
  .header-ctas { margin-left: auto; margin-right: 8px; }
  .primary-nav .nav-list { gap: 10px; }
}

/* ---------- Mobile Responsive Tables (stacked) ---------- */
@media (max-width: 720px) {
  .data-table.responsive { min-width: 0; width: 100%; }
  .data-table.responsive thead { display: none; }
  .data-table.responsive tbody, .data-table.responsive tr, .data-table.responsive th, .data-table.responsive td { display: block; width: 100%; }
  .data-table.responsive tr { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 8px 10px; }
  .data-table.responsive th[scope="row"] { color: #eaf0ff; font-weight: 700; padding: 6px 0 2px 0; border: 0; }
  .data-table.responsive.kv th[scope="row"]::after { content: ":"; margin-left: 4px; color: var(--muted); font-weight: 600; }
  .data-table.responsive td { padding: 4px 0; border: 0; }
  .data-table.responsive td::before { content: attr(data-label) ""; color: var(--muted); font-weight: 600; }
}


