/*
  Bruce Bet Casino – Dark Theme Styles
  - Global dark palette: background #242424, header #313131
  - Mobile-first responsive layout
  - Accessible focus states and readable typography
  - Component groups annotated for quick maintenance
*/

/* =========================
   CSS RESET + BASE TYPOGRAPHY
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #242424; /* Dark background */
  color: #EAEAEA;
  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;
}
/* Particles canvas container behind content */
#particles-js {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #7ecbff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus ring for accessibility */
:focus-visible {
  outline: 3px solid #66d9ef;
  outline-offset: 2px;
}

/* Constrain content */
.container { width: min(1200px, 92vw); margin-inline: auto; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 0.5rem 0.75rem; background: #313131; }

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #313131; /* Header color */
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0.75rem 0.5rem;
}
.logo img { display: block; }
.primary-nav { display: flex; justify-content: center; }
.primary-nav__list { display: none; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.primary-nav__list a { color: #e0e0e0; }
.header__actions { display: flex; gap: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn--primary { background: #0ea5e9; color: #081014; }
.btn--primary:hover { background: #38bdf8; text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: #22c55e; color: #081014; }
.btn--accent:hover { background: #34d399; text-decoration: none; transform: translateY(-1px); }

/* =========================
   BREADCRUMBS
   ========================= */
.breadcrumbs { background: #2b2b2b; border-bottom: 1px solid rgba(255,255,255,0.06); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; margin: 0; list-style: none; }
.breadcrumbs__item { color: #bdbdbd; }
.breadcrumbs__item a { color: #9dd6ff; }
.breadcrumbs__item[aria-current="page"] { color: #ffffff; }

/* =========================
   HERO BANNER
   ========================= */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__media img, .hero__media source { width: 100%; height: auto; display: block; }

/* CTA overlay: centered on mobile, right-aligned on desktop */
.hero__cta {
  position: absolute; inset: auto 50% 10% 50%; transform: translate(-50%, 0);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  padding: 1rem; border-radius: 12px; width: min(92vw, 560px);
  display: grid; gap: 0.5rem; text-align: center;
}
.hero__title { margin: 0; font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.2; }
.hero__subtitle { margin: 0; color: #d2d2d2; }

/* =========================
   SLOTS GRID
   ========================= */
.section { padding: 1.5rem 0; }
.section--slots h2 { margin: 0 0 0.75rem; }
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0; margin: 0; list-style: none;
}
.slot-card { background: #2a2a2a; border-radius: 10px; padding: 0.5rem; }
.slot-card__link { display: block; border-radius: 8px; overflow: hidden; }
.slot-card__link img { display: block; border-radius: 8px; }

/* =========================
   ARTICLE / PROSE CONTENT
   ========================= */
.prose h1, .prose h2, .prose h3 { line-height: 1.25; }
.prose h1 { font-size: clamp(1.4rem, 3.6vw, 2.2rem); margin-top: 1rem; }
.prose h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-top: 1.25rem; }
.prose h3 { font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin-top: 1rem; }
.prose p { color: #d9d9d9; }
.prose ul, .prose ol { padding-left: 1.2rem; }

/* =========================
   TABLES (Responsive)
   - Wrap in .table-wrap with role region
   - On small screens, stack rows; JS adds data-label from the thead
   ========================= */
.table-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 0.25rem; background: #2a2a2a; }
table { width: 100%; border-collapse: collapse; }
thead td { background: #313131; color: #fff; font-weight: 700; }
td { padding: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }

/* Mobile stacking */
@media (max-width: 640px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { margin-bottom: 0.75rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
  td { border: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700; color: #c9c9c9; margin-bottom: 0.2rem;
  }
}

/* =========================
   FOOTER
   ========================= */
.site-footer { background: #2b2b2b; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 2rem; }
.footer__inner { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.5rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; }

/* Payments strip */
.payments { overflow-x: auto; padding: 0.5rem 0; }
.payments__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.payments__item { display: flex; align-items: center; justify-content: center; padding: 0.5rem; background: #2a2a2a; border-radius: 8px; }
.payments__item img { height: 34px; width: auto; filter: grayscale(0.2) brightness(0.9); }

/* =========================
   MEDIA QUERIES – LARGER SCREENS
   ========================= */
@media (min-width: 640px) {
  .primary-nav__list { display: flex; }
  .section { padding: 2rem 0; }
}

@media (min-width: 768px) {
  /* Slots: 3 columns on tablets */
  .slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .header__inner { padding: 0.9rem 0.75rem; }
  .payments__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .payments__item img { height: 38px; }
}

@media (min-width: 1024px) {
  /* Slots: 6 columns on desktop */
  .slots-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }

  /* CTA moves to the right side on desktop */
  .hero__cta { inset: 10% 5% auto auto; transform: none; text-align: left; width: min(40vw, 520px); }
  .payments__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .payments__item img { height: 44px; }
}


