/*
  Xon Bet Casino - Dark Theme Stylesheet
  - Dark palette with accessible contrast
  - Responsive layout (mobile-first)
  - Components: header, breadcrumbs, hero, CTA overlay, slots grid, tables, footer
  - Mobile table adaptation: stack with data-labels
*/

:root {
  --bg: #0b1020;           /* page background */
  --bg-elev: #121936;      /* elevated surfaces */
  --text: #e6ebff;         /* primary text */
  --muted: #a8b2d1;        /* secondary text */
  --accent: #6aa9ff;       /* interactive accents */
  --accent-strong: #3d8bff;/* prominent CTA */
  --cta-text: #0b1020;     /* CTA text color on accent */
  --border: #233058;       /* subtle borders */
  --overlay: rgba(11, 16, 32, 0.55); /* semi-transparent overlay */
  --radius: 12px;
  --container: 1200px;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Base reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--accent);
  color: var(--cta-text);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, #0b1020, rgba(11,16,32,0.8)); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.brand img { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.primary-nav .nav-list { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); background: var(--bg-elev); text-decoration: none; transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent-strong); color: var(--cta-text); border-color: transparent; }
.btn-primary:hover { background: #2c7df2; }
.btn-secondary { background: var(--bg-elev); color: var(--text); }
.btn-accent { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: var(--cta-text); border: none; box-shadow: var(--shadow); }
.btn-lg { padding: 14px 22px; font-weight: 700; font-size: 1.05rem; }

/* Breadcrumbs */
.breadcrumbs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #0e1530; }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 10px 16px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); margin: 0 6px 0 2px; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media source { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* dark gradient overlay */ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,0.25), rgba(11,16,32,0.75)); }
.hero-cta { position: relative; z-index: 1; background: var(--overlay); backdrop-filter: blur(6px); padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); text-align: center; border: 1px solid var(--border); max-width: min(92%, 720px); }
.hero-cta h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.6vw, 2rem); }
.hero-sub { margin: 0 0 14px; color: var(--muted); }

/* Sections and content */
.section { padding: clamp(24px, 4vw, 48px) 0; }
.section-desc { color: var(--muted); margin-top: 4px; }
.content h2, .content h3 { scroll-margin-top: 84px; }
.content p, .content li { color: var(--text); }
.content ul, .content ol { padding-left: 20px; }

/* Slots section block: full-size container width with rounded background */
.slots-section .container { padding: 0; }
.slots-section > .container { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.slots-section h2, .slots-section .section-desc { padding: 16px; padding-bottom: 0; }
.slots-grid { padding: 0 16px 16px; }

/* Slots grid */
.slots-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot { display: block; border-radius: 10px; overflow: hidden; background: #0f1733; border: 1px solid var(--border); transition: transform 0.15s ease, box-shadow 0.2s; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: auto; }

@media (min-width: 640px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

/* Responsive tables */
.table-wrapper { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; overflow: hidden; }
table.responsive { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.responsive thead { background: #0e1733; }
table.responsive th, table.responsive td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
table.responsive th { color: var(--muted); font-weight: 600; }
table.responsive tr:last-child td { border-bottom: 0; }

/* Mobile stacking */
@media (max-width: 720px) {
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { background: transparent; border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; padding: 8px; }
  table.responsive td { border: 0; padding: 8px 8px; position: relative; }
  table.responsive td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); display: inline-block; min-width: 140px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a0f21; }
.payments { padding-top: 12px; }
.payments h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--muted); }
.payments-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.payments-grid img { filter: grayscale(10%); opacity: 0.9; max-height: 36px; margin: 0 auto; }

@media (min-width: 640px) {
  .payments-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
  .payments-grid { grid-template-columns: repeat(8, 1fr); }
}

.footer-bottom { border-top: 1px solid var(--border); margin-top: 18px; padding: 12px 0 18px; color: var(--muted); font-size: 0.9rem; }

/* Focus styles for accessibility */
:where(a, button, [role="button"]) { outline: none; }
:where(a, button, [role="button"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* Utility */
.text-center { text-align: center; }


