/*
  styles.css (Dark Theme)
  - Global tokens (CSS variables)
  - Base resets & typography
  - Layout helpers: container, sections
  - Header, Breadcrumbs
  - Hero/Banner with centered CTA overlay
  - Slots grid (12 items, 6 per row on desktop)
  - Article content (headings, lists, responsive tables)
  - Footer with payment logos
  - Accessibility helpers
  - Responsive media queries (mobile-first)
*/

/* =============================
   Global color tokens (dark)
   ============================= */
:root {
  --color-bg: #0b0e14;
  --color-surface: #111827;
  --color-surface-2: #0f172a;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-primary: #10b981; /* teal-500 */
  --color-primary-contrast: #08130f;
  --color-border: #374151;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  /* layout sizes */
  --header-h: 52px;
  --crumbs-h: 34px;
}

/* =============================
   Base & typography
   ============================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* avoid horizontal scroll on mobile */
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; width: auto; height: auto;
  padding: 8px 12px; background: var(--color-primary); color: #000; border-radius: 6px;
}

/* =============================
   Layout helpers
   ============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 48px 0; }
.section__title { font-size: 1.5rem; margin: 0 0 16px; }

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  color: var(--color-text); font-weight: 600; box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(1.08); }
.btn:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); border-color: transparent; }
.btn--sm { padding: 8px 12px; }

/* =============================
   Header & Breadcrumbs
   ============================= */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,14,20,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .container { padding-right: 20px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 120px; height: auto; }
.utility-nav { display: inline-flex; gap: 6px; }
.utility-nav .btn { padding: 6px 10px; font-size: 0.9rem; }

.breadcrumbs { position: sticky; top: var(--header-h); z-index: 19; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: #0c111b; }
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; padding: 6px 16px; min-height: var(--crumbs-h); font-size: 0.9rem; color: var(--color-text-muted); list-style: none; margin: 0; }
.breadcrumbs .container li::marker { content: ""; }
.breadcrumbs a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumbs .sep { color: var(--color-text-muted); }

/* =============================
   Hero/Banner
   ============================= */
.hero { position: relative; isolation: isolate; }
.hero img { width: 100%; height: clamp(48vh, 60vh, 72vh); object-fit: cover; display: block; }
.hero__overlay {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
}
.hero__overlay > * {
  /* semi-transparent centered CTA card */
}
.hero__title, .hero__subtitle, .hero__actions { margin: 0; }
.hero__overlay::before {
  content: "";
  position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 0;
}
.hero__overlay > div, .hero__overlay > h1, .hero__overlay > p, .hero__overlay .hero__actions { z-index: 1; }

.hero__overlay { text-align: center; }
.hero__overlay .hero__title { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 800; }
.hero__overlay .hero__subtitle { color: var(--color-text-muted); margin-top: 8px; }
.hero__actions { margin-top: 16px; display: inline-flex; gap: 12px; }

/* Centered semi-transparent panel (single card for CTA content) */
.hero__card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  width: min(92%, 900px);
  margin: 0 auto;
}
.hero__title { margin: 0 0 6px; }
.hero__subtitle { margin: 0 0 8px; }

/* =============================
   Slots grid
   ============================= */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.slot { display: block; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.slot img { aspect-ratio: 1 / 1; object-fit: cover; }
.slot:hover { filter: brightness(1.05); }

/* =============================
   Article content & tables
   ============================= */
.article { padding: 32px 0 64px; }
.article h1 { font-size: 1.75rem; margin: 0 0 12px; }
.article h2 { font-size: 1.35rem; margin: 24px 0 8px; }
.article h3 { font-size: 1.15rem; margin: 16px 0 8px; color: var(--color-text); }
.article p { margin: 8px 0; color: var(--color-text); }
.article ul, .article ol { margin: 8px 0 16px 20px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); margin: 12px 0; }
.table-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable both-edges; }
.table-wrap:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); }
.table-wrap thead th { position: sticky; top: calc(var(--header-h) + var(--crumbs-h)); background: #0c111b; z-index: 2; }

/* Scroll hint for overflowing tables */
.table-wrap[data-scrollable="true"] { box-shadow: inset -12px 0 12px -12px rgba(255,255,255,0.08); }

/* =============================
   Footer
   ============================= */
.site-footer { background: #0c111b; border-top: 1px solid var(--color-border); padding: 24px 0; }
.payments { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.payments__item { display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; background: transparent; }
.payments__item img { height: 28px; width: auto; }
.footer-copy { margin: 16px 0 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* =============================
   Responsive
   ============================= */
@media screen and (min-width: 640px) {
  .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (min-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Mobile-specific tweaks */
@media screen and (max-width: 639.98px) {
  /* Slight extra right indent for header buttons */
  .utility-nav { gap: 4px; margin-right: 2px; }
  .utility-nav .btn { padding: 6px 10px; }

  /* Ensure consistent side gutters for all content blocks */
  .section > .container,
  .article.container,
  .breadcrumbs .container,
  .header-inner.container,
  .site-footer > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Tables: prevent horizontal movement; allow vertical stretching */
  .table-wrap { margin-left: 0; margin-right: 0; overflow-x: hidden; }
  .table-wrap table { min-width: 0; width: 100%; table-layout: fixed; }
  .table-wrap th, .table-wrap td { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
  /* Disable sticky table headers on small screens to prevent overlap */
  .table-wrap thead th { position: static; top: auto; z-index: 0; }
}


