/*
  VOX Casino – Dark Theme Stylesheet
  - Component-scoped sections with comments
  - Mobile-first, responsive layout
  - Accessible focus styles and reduced motion considerations
*/

/* ==========================================================
   CSS Variables (Dark Theme)
   - Centralized theming tokens for colors, spacing, radius
   ========================================================== */
:root {
  --color-bg: #0b0f17;
  --color-surface: #111826;
  --color-surface-muted: #0f1623cc; /* semi-transparent overlay */
  --color-text: #e6edf3;
  --color-text-muted: #a6b3c2;
  --color-primary: #4f46e5; /* indigo-600 */
  --color-primary-contrast: #ffffff;
  --color-accent: #06b6d4; /* cyan-500 */
  --color-border: #223047;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
}

/* ==========================================================
   Base + Reset
   ========================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Lock viewport nuisances on mobile (no horizontal scroll, no overscroll glow) */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; overscroll-behavior: none; }
}

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Utility: visually-hidden for a11y-only content */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Layout container */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.95), rgba(11, 15, 23, 0.75));
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(120%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.nav-list {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link { color: var(--color-text); }
.brand img { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-primary:hover { background: #4338ca; }
.btn-accent { background: var(--color-accent); color: #012029; }
.btn-accent:hover { background: #0891b2; }

/* ==========================================================
   Breadcrumbs
   ========================================================== */
.breadcrumbs { border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 8px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumbs li { color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text); }

/* ==========================================================
   Hero Banner
   ========================================================== */
.hero { position: relative; }
.hero-media { margin: 0; }
.hero-media picture, .hero-media img { width: 100%; height: auto; display: block; max-height: 540px; object-fit: cover; object-position: center top; }

/* CTA overlay: semi-transparent block */
.hero-cta {
  position: absolute;
  inset: auto var(--space-4) var(--space-4) var(--space-4);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-4);
}
.hero-title { margin: 0; font-size: clamp(1.25rem, 2.5vw, 2rem); }
.hero-subtitle { margin: 0; color: var(--color-text-muted); }

/* Desktop: right-align CTA card */
@media (min-width: 768px) {
  .hero-cta { width: min(520px, 42%); right: 5%; left: auto; bottom: 50%; transform: translateY(50%); }
}
/* Ensure the girl's head is fully visible on desktop by biasing crop to top-left */
@media (min-width: 1024px) {
  .hero-media img { object-position: left top; }
}
/* Mobile: center CTA card */
@media (max-width: 767px) {
  .hero-cta { left: 50%; transform: translateX(-50%); width: calc(100% - 32px); bottom: 16px; }
}

/* ==========================================================
   Slots Grid
   ========================================================== */
.slots { padding: var(--space-10) 0; }
.slots h2 { margin: 0 0 var(--space-6); }
.slots-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
}
.slots-grid li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-2); }
.slots-grid img { border-radius: 10px; }
.slots-grid a:hover img { transform: translateY(-2px); transition: transform 120ms ease; }

/* ==========================================================
   Article Content
   ========================================================== */
.article-header .lead { color: var(--color-text-muted); font-size: 1.1rem; }
main.container { padding: var(--space-10) var(--space-4); }
section + section { margin-top: var(--space-10); }
h2 { margin: 0 0 var(--space-4); font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h3 { margin: var(--space-6) 0 var(--space-3); font-size: clamp(1.05rem, 2vw, 1.25rem); }
ul, ol { padding-left: 1.25rem; }

/* Tables: accessible and responsive (stacked on small screens) */
.table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  overflow: hidden; /* contain inner table overflow */
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table thead { background: #0e1524; }
.table th, .table td {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  padding: 12px;
  vertical-align: top;
}
.table th { color: var(--color-text); font-weight: 700; }
.table tbody tr:last-child td { border-bottom: none; }

/* Stacked table on narrow screens */
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; }
  .table td { display: grid; grid-template-columns: 42% 58%; gap: 8px; }
  .table td::before {
    content: attr(data-label);
    color: var(--color-text-muted);
    font-weight: 600;
  }
}

/* ==========================================================
   Article CTA
   ========================================================== */
.article-cta { margin: var(--space-12) 0 var(--space-6); }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: #0b1220;
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}
.footer-heading { margin: 0 0 var(--space-4); font-size: 1rem; color: var(--color-text-muted); }
.payments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (min-width: 480px) {
  .payments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .payments { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .payments { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.payments li {
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payments img { filter: grayscale(0.1) brightness(1.1); max-height: 28px; width: auto; }

.site-footer p { color: var(--color-text-muted); font-size: 0.9rem; }


