/*
  Syndicate Casino Australia — Dark Theme Styles
  - Semantic structure targeting
  - Responsive layout and table adaptation
  - Accessible focus states and reduced motion

  Sections:
  1) CSS Reset and Base
  2) Theming (dark)
  3) Layout helpers (container, grids)
  4) Header / Nav / Buttons
  5) Hero
  6) Article content
  7) Tables (responsive stacks on mobile)
  8) Slots and Payments sections
  9) Footer
  10) Utilities and media queries
*/

/* 1) CSS Reset and Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #e6edf3;
  background: #0b0f14;
}
img { max-width: 100%; display: block; height: auto; }
a { color: #7cc3ff; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #66aaff; outline-offset: 2px; }

/* 2) Theming (dark) */
.theme-dark {
  --bg: #0b0f14;
  --panel: #0f141b;
  --panel-2: #121924;
  --text: #e6edf3;
  --muted: #a9b6c5;
  --brand: #1f7aff;
  --brand-600: #1862cc;
  --brand-700: #124c9e;
  --border: #1d2733;
  --success: #22c55e;
}

/* 3) Layout helpers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; z-index: 1000; padding: .5rem .75rem; background: var(--brand); color: #fff; border-radius: 6px; }

/* 4) Header / Nav / Buttons */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,15,20,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.logo { display: inline-flex; align-items: center; }
.primary-nav .nav-list { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { padding: .5rem .75rem; border-radius: 8px; }
.primary-nav a:hover { background: var(--panel); text-decoration: none; }

.header-ctas { display: flex; gap: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: .55rem .9rem; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.btn-lg { padding: .8rem 1.2rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--panel-2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: #fff; }

/* 5) Hero */
.hero { position: relative; }
.hero picture, .hero img { width: 100%; display: block; }
/* Dark gradient overlay for readability on top of banner image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
/* Center CTA/text on the banner for both desktop and mobile */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 92%);
  text-align: center;
  padding: 0 1rem;
  z-index: 2;
}
.hero-title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 2.8vw + 1rem, 2.6rem); text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-text { color: var(--muted); margin-bottom: 1rem; max-width: 70ch; margin-left: auto; margin-right: auto; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-ctas { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* 6) Article content */
.content { padding: 3rem 0 2rem; }
.lede { color: var(--muted); margin-top: .25rem; }
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem); margin: .25rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 1.5vw + .8rem, 2rem); margin: 2rem 0 .75rem; }
h3 { font-size: clamp(1.15rem, 1vw + .7rem, 1.35rem); margin: 1.25rem 0 .5rem; }
h4 { margin: 1rem 0 .5rem; font-size: 1.05rem; color: var(--muted); }
ul, ol { padding-left: 1.2rem; }
.content p { margin: .5rem 0 1rem; }

/* 7) Tables */
.table-wrapper { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: .5rem; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; color: var(--muted); padding: .75rem; font-size: .95rem; }
th, td { text-align: left; padding: .75rem; border-top: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--panel-2); border-top: none; }
tbody tr:nth-child(2n) td, tbody tr:nth-child(2n) th[scope="row"] { background: rgba(255,255,255,0.02); }

/* Responsive table: stack rows on small screens with labels */
@media (max-width: 720px) {
  .responsive-table thead { display: none; }
  .responsive-table tbody tr { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
  .responsive-table tbody tr:first-child { border-top: none; }
  .responsive-table th[scope="row"],
  .responsive-table td { display: grid; grid-template-columns: 38% 1fr; gap: .75rem; border: none; padding: .65rem .75rem; }
  .responsive-table th[scope="row"] { color: #cdd9e5; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); }
}

/* 8) Slots and Payments */
.slots-section { margin: 1.5rem 0 0; }
.slots-grid { display: grid; list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
/* Card-like slot entries with subtle elevation */
.slots-grid a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; box-shadow: 0 3px 10px rgba(0,0,0,.25); padding: 6px; }
.slots-grid a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.38); border-color: #243241; }
.slots-grid img { width: 100%; height: 140px; object-fit: contain; display: block; border-radius: 12px; background: #0e141a; }
.slots-cta { margin-top: 1rem; text-align: center; }

.payments-section { margin-top: 2rem; }
.payments-grid { display: grid; list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; align-items: center; }
.payments-grid img { filter: grayscale(.2) brightness(1.1); background: var(--panel); border-radius: 8px; padding: .35rem .5rem; border: 1px solid var(--border); }

/* 9) Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a0e13; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.footer-brand { color: var(--muted); }

/* 10) Utilities and media queries */
@media (max-width: 960px) {
  .primary-nav { display: none; }
  /* Move CTA/text to the bottom of the banner on mobile and make it more expressive */
  .hero-content {
    top: auto;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.72));
    backdrop-filter: blur(6px);
    padding: .9rem 1rem;
    border-radius: 14px;
    width: min(92%, 520px);
  }
  .hero-title { font-size: 1.6rem; }
  .hero-text { font-size: .98rem; }
  .hero-ctas { gap: .5rem; }
  .hero-ctas .btn { min-width: 44%; font-size: 1rem; padding: .9rem 1rem; }

  /* Revert mobile slot images to earlier look */
  .slots-grid { gap: .9rem; }
  .slots-grid a { padding: 0; border-radius: 14px; background: var(--panel); box-shadow: none; }
  .slots-grid img { height: 140px; object-fit: cover; border-radius: 0; background: transparent; }
}

@media (min-width: 1024px) {
  /* Ensure exactly 2 rows of 6 on desktop (12 items) */
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
  /* Slightly larger thumbnails/cards and consistent fit */
  .slots-grid a { padding: 10px; border-radius: 18px; }
  .slots-grid img { height: 150px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


