/*
  Light Theme Stylesheet for Spin City Casino Canada
  - Uses CSS variables for theming
  - Header color: #0c4cc0 (as requested)
  - Responsive: mobile-first with progressive enhancements
  - Accessibility: focus states, high contrast, readable sizes
  - Methodology: BEM naming for components
*/

:root {
  --color-header: #0c4cc0;
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-text: #0b1623;
  --color-text-muted: #4a5568;
  --color-primary: #0c4cc0;
  --color-primary-contrast: #ffffff;
  --color-secondary: #0b8f3a;
  --color-overlay: rgba(12, 76, 192, 0.75);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --max-content: 1200px;
}

/* Reset and base typography */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 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(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* Header */
.site-header {
  background: var(--color-header);
  color: var(--color-primary-contrast);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}
.header__logo { display: block; }
.header__actions { display: none; gap: var(--space-2); }

.primary-nav { position: relative; }
.nav__toggle {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  right: 0;
  background: var(--color-header);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}
.nav__item { border-bottom: 1px solid rgba(255,255,255,0.2); }
.nav__item:last-child { border-bottom: none; }
.nav__link { display: block; padding: var(--space-2) var(--space-3); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
}
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--secondary { background: #16a34a; color: #fff; }
.btn--secondary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.8); color: #fff; }
/* Header actions: force green buttons */
.header__actions .btn { background: #16a34a; color: #fff; border-color: #16a34a; }
.header__actions .btn:hover { filter: brightness(1.05); }
.btn--xl { padding: 0.875rem 1.25rem; font-size: 1.125rem; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--color-surface);
  border-bottom: 1px solid #e2e8f0;
}
.breadcrumbs__list {
  display: flex;
  gap: 0.25rem;
  padding-block: 0.375rem;
  padding-left: 0.5rem; /* left indent */
  margin: 0;
  font-size: 0.875rem; /* smaller text */
  list-style: none; /* prevent list index overlap */
}
.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  padding: 0 0.375rem;
  color: var(--color-text-muted);
}
.breadcrumbs__item { color: var(--color-text-muted); }
.breadcrumbs__item a { color: inherit; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__image { width: 100%; height: auto; display: block; }
.hero__particles { position: absolute; inset: 0; z-index: 0; }
.hero__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: var(--space-5) var(--space-3);
  background: linear-gradient( to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35) ) ;
  z-index: 1;
}
/* Semi-transparent CTA card lighter than banner */
.hero__card { background: rgba(255,255,255,0.6); backdrop-filter: blur(2px); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-md); }
.hero__card .hero__title { color: var(--color-text); }
.hero__card .hero__subtitle { color: var(--color-text-muted); }
.hero__title {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  margin: 0 0 var(--space-2);
  text-align: center;
}
.hero__subtitle { color: #e5e7eb; margin: 0 0 var(--space-3); text-align: center; }
.hero__cta { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

/* Slots grid */
.slots { padding-block: var(--space-5); }
.slots__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.slots__item { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.slots__item a:hover img { transform: scale(1.03); }
.slots__item img { transition: transform 200ms ease; width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-md); animation: floatY 6s ease-in-out infinite; }

/* Content */
.content { padding-block: var(--space-5); }
.article__header { margin-bottom: var(--space-4); }
.article__intro { color: var(--color-text-muted); }
.article__section { margin-top: var(--space-5); }

/* Tables: responsive stacking on small screens
   - table--stack will transform into cards using CSS + JS helpers */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb; text-align: left; }
.table thead th { background: #f1f5f9; font-weight: 700; }
.table caption { text-align: left; padding: var(--space-2) var(--space-3); color: var(--color-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Stack tables on small screens using data-labels set by JS */
@media (max-width: 767.98px) {
  .table { min-width: 0; }
  .table.table--stack thead { display: none; }
  .table.table--stack tbody { display: block; }
  .table.table--stack tr { display: block; border-bottom: 1px solid #e5e7eb; margin-bottom: var(--space-2); }
  .table.table--stack td, .table.table--stack th[scope="row"] { display: grid; grid-template-columns: 44% 1fr; gap: var(--space-2); border: 0; padding: 0.5rem 0.75rem; }
  .table.table--stack td::before, .table.table--stack th[scope="row"]::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-text-muted);
  }
  .table-wrap { box-shadow: none; background: transparent; }
}

/* FAQ */
.faq { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.faq + .faq { margin-top: var(--space-2); }
.faq__q { font-weight: 600; }
.faq[open] { box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { background: #0b1324; color: #cbd5e1; margin-top: var(--space-6); }
.footer__top { display: grid; gap: var(--space-4); padding-block: var(--space-5); grid-template-columns: 1fr; }
.payments__list { list-style: none; display: flex; gap: var(--space-3); padding: 0; margin: 0; align-items: center; flex-wrap: wrap; }
.payments__list img { animation: floatY 8s ease-in-out infinite; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); grid-auto-flow: column; align-items: center; }
.footer__bottom { border-top: 1px solid #1f2937; padding-block: var(--space-2); text-align: center; }

/* Mobile lock overlay
   - Shown on small devices in landscape or if JS detects unlock requirement */
.mobile-lock {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
}
.mobile-lock[aria-hidden="false"] { display: flex; }
.mobile-lock__content { background: #111827; color: #fff; padding: var(--space-4); border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-md); }

/* Medium screens and up */
@media (min-width: 768px) {
  .header__actions { display: flex; }
  .nav__toggle { display: none; }
  .nav__list { position: static; display: flex; background: transparent; box-shadow: none; }
  .nav__item { border: 0; }
  .nav__link { padding: var(--space-2) var(--space-2); }

  /* Hero CTA alignment: left on desktop */
  .hero__overlay {
    justify-items: start;
    align-content: center;
    padding: var(--space-6);
  }
  .hero__card { max-width: 520px; }
  .hero__title, .hero__subtitle { text-align: left; }
  .hero__cta { justify-content: start; }

  /* Slots: 6 per row */
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
  .slots__item img { height: 160px; }

  /* Tables: enable full width without min-width constraint at larger screens */
  .table { min-width: 100%; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Floating animation used on select elements */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Hide primary nav on small screens; show only Login/Register */
@media (max-width: 767.98px) {
  .primary-nav { display: none; }
  .header__actions { display: flex; }
}


