/*
  Bruce Bet Casino – Dark Theme Styles
  - Header: #313131
  - Background: #242424
  - This stylesheet is organized by components with clear comments.
*/

/* CSS Reset (minimal, non-destructive) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Color variables (scope: global) */
:root {
  --color-bg: #242424;
  --color-header: #313131;
  --color-surface: #2c2c2c;
  --color-text: #f3f3f3;
  --color-text-muted: #c9c9c9;
  --color-primary: #18a0fb;
  --color-primary-contrast: #0b0b0b;
  --overlay: rgba(0,0,0,0.55);
  --radius: 10px;
  --container: 1200px;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* Global base styles */
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Header */
.site-header { background: var(--color-header); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo img { display: block; }

.primary-nav__list { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--color-text); font-size: 22px; }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 8px 16px; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs li::after { content: "/"; color: var(--color-text-muted); margin-left: 8px; }
.breadcrumbs li:last-child::after { content: ""; }

/* Hero Banner */
.hero { position: relative; }
.hero__img { width: 100%; height: auto; display: block; }
@media screen and (min-width: 769px) {
  .hero__img { height: clamp(360px, 40vw, 520px); object-fit: cover; }
}
.hero__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hero__overlay::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero__panel {
  position: relative; z-index: 1; background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  padding: 20px 24px; border-radius: var(--radius);
  max-width: 680px; text-align: center;
}
.hero__title, .hero__subtitle { position: relative; z-index: 1; }
.hero__title { font-size: clamp(22px, 3.5vw, 40px); margin: 0 0 8px; }
.hero__subtitle { color: var(--color-text-muted); margin: 0 0 16px; }
.hero__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* On desktop, move overlay to the right to satisfy requirement */
@media screen and (min-width: 769px) {
  .hero__overlay { justify-content: center; align-items: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn--text { color: var(--color-text-muted); text-decoration: underline; }

/* Slots Grid (6 per row on desktop) */
.slots { padding: 24px 0 8px; }
.slots__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 16px 0 0; }
.slots__grid img { border-radius: var(--radius); background: var(--color-surface); }

@media screen and (min-width: 480px) {
  .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)); }
}

/* Content */
main.container { padding-block: 24px; }
.content h1, .content h2, .content h3 { line-height: 1.2; }
.content h1 { font-size: clamp(24px, 4vw, 40px); }
.content h2 { font-size: clamp(20px, 3vw, 28px); margin-top: 28px; }
.content h3 { font-size: clamp(18px, 2.5vw, 22px); margin-top: 20px; }

/* Tables: default desktop styles */
.table-wrapper { background: var(--color-surface); border-radius: var(--radius); overflow: hidden; margin: 12px 0 20px; box-shadow: var(--shadow); }
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper thead { background: #2a2a2a; }
.table-wrapper th, .table-wrapper td { padding: 12px 14px; text-align: left; vertical-align: top; }
.table-wrapper tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }

/* Responsive tables: stack on small screens using data-label */
@media screen and (max-width: 768px) {
  .table-wrapper thead { display: none; }
  .table-wrapper tr { display: grid; grid-template-columns: 1fr; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .table-wrapper td, .table-wrapper th[scope="row"] { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 0; }
  .table-wrapper td::before, .table-wrapper th[scope="row"]::before { content: attr(data-label); color: var(--color-text-muted); font-weight: 600; }
  .table-wrapper th[scope="row"] { font-weight: 600; }
}

/* Footer */
.site-footer { background: var(--color-header); margin-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.footer__meta { display: flex; align-items: center; gap: 16px; }
.footer__inner ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.pay-logos { display: grid; grid-auto-flow: column; gap: 10px; align-items: center; }
.pay-logos img { filter: grayscale(1) brightness(0.9); opacity: 0.9; }
.pay-logos img:hover { filter: none; opacity: 1; }

@media screen and (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 12px; padding: 12px 0; }
  .pay-logos { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; width: 100%; }
  .pay-logos img { justify-self: center; }
  /* Add left indent for footer on mobile */
  .site-footer .container { padding-left: 24px; }
}

/* Particles background container */
#particles-js { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body { position: relative; z-index: 1; }

/* Mobile navigation (progressive enhancement) */
@media screen and (max-width: 768px) {
  /* Keep CTA visible and aligned to the right in the header on mobile */
  .nav-toggle { display: none; }
  .primary-nav { position: static; inset: auto; background: transparent; transform: none; }
  .primary-nav__list { flex-direction: row; padding: 0; }
  .primary-nav { margin-left: auto; }
}

/* Orientation notice (fallback when orientation lock isn't supported) */
@media screen and (orientation: landscape) and (max-width: 768px) {
  body.lock-orientation::before {
    content: "Bitte drehen Sie Ihr Gerät";
    position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.85);
    color: #fff; z-index: 1000; font-size: 18px; text-align: center; padding: 20px;
  }
}


