/*
  ICE Casino DE - Light Theme Styles
  - Mobile-first responsive layout
  - BEM naming, CSS variables
  - Accessible components (focus states, readable contrast)
  - Responsive tables (mobile adaptation)
*/

:root {
  /* Color palette (light theme) */
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-primary: #2f80ed; /* ICE blue */
  --color-primary-700: #1b5fb7;
  --color-text: #0b1020;
  --color-muted: #5c6a7b;
  --color-border: #e3e8ef;
  --color-overlay: rgba(11, 16, 32, 0.55);

  /* Sizing and spacing */
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
  --gap: 16px;
  --gap-lg: 24px;
  --header-h: 64px;
}

/* Reset-ish */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll and "fix" the viewport on mobile */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  min-height: 100svh; /* accounts for mobile UI */
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}

.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: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 12px;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--gap);
}
.brand img {
  display: block;
  height: 40px; /* larger header logo */
  width: auto;
}
.primary-nav { 
  justify-self: center; /* center buttons in header */
}
.primary-nav__list {
  display: flex; /* visible at all sizes */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.primary-nav__list a {
  text-decoration: none;
  color: var(--color-text);
}
.header__cta {
  justify-self: end;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-700);
}
.btn--lg {
  padding: 14px 22px;
  font-size: 1.0625rem;
}

/* Breadcrumbs */
.breadcrumbs {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs__item a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumbs__item[aria-current="page"] span {
  color: var(--color-text);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__media img {
  width: 100%;
  height: 64svh; /* base banner height */
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}
.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__media img {
  object-position: center center; /* default crop */
}
@media screen and (max-width: 480px) {
  /* Shift banner crop slightly left and reduce height on small phones */
  .hero__media img {
    height: 52svh; /* smaller to reveal more of the image */
    object-position: 35% center; /* move focus left without gaps */
  }
}
.hero__content {
  background: var(--color-overlay);
  backdrop-filter: saturate(140%) blur(2px);
  color: #fff;
  text-align: center;
  padding: 20px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 720px;
}
.hero__title {
  margin: 0 0 8px;
  line-height: 1.2;
}
.hero__subtitle {
  margin: 0 0 16px;
}

/* Slots grid */
.slots {
  padding: 32px 0;
}
.slots__grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.slots__item {
  border: 1px solid var(--color-border);
  border-radius: 16px; /* rounded slot image corners */
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.slots__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Content */
.content {
  padding: 24px 0 48px;
}
.entry h2,
.entry h3,
.entry h4 {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.entry section + section {
  margin-top: 24px;
}

/* Responsive tables: scrollable wrapper + stacked layout on very small screens */
.table-responsive {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px; /* desktop/tablet baseline */
}
.table-responsive thead {
  background: var(--color-surface);
}
.table-responsive th,
.table-responsive td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.table-responsive tr:last-child td,
.table-responsive tr:last-child th {
  border-bottom: none;
}

/* Final CTA */
.final-cta {
  margin-top: 32px;
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px 0;
}
.footer__payments .payments__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.payments__list img {
  height: 24px;
  width: auto;
  display: block;
}
.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--color-muted);
  text-decoration: none;
}

/* Media queries */
@media screen and (min-width: 768px) {
  .primary-nav__list {
    display: flex;
  }
  .hero__media img {
    height: 60svh; /* slightly smaller to fit more image on screen */
  }
  .slots__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .hero__media img {
    height: 64svh; /* balanced desktop height */
  }
  .slots__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)); /* 6 per row on desktop */
  }
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

/* Mobile table adaptation: stack rows with labels */
@media screen and (max-width: 600px) {
  /* Hide header nav on mobile */
  .primary-nav {
    display: none;
  }

  /* Footer inner paddings (left/right indents) */
  .site-footer .container {
    padding-inline: 20px;
  }
  .table-responsive {
    overflow-x: clip; /* prevent accidental horizontal scroll */
  }
  .table-responsive table {
    min-width: 0;
  }
  .table-responsive thead {
    display: none;
  }
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td,
  .table-responsive th {
    display: block;
    width: 100%;
  }
  .table-responsive tr {
    padding: 8px 14px;
    border-bottom: 1px solid var(--color-border);
  }
  .table-responsive tr:last-child {
    border-bottom: none;
  }
  .table-responsive th[scope="row"] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    padding: 12px 0 6px;
    border: 0;
  }
  .table-responsive td {
    border: 0;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: baseline;
  }
  .table-responsive td::before {
    content: attr(data-label);
    color: var(--color-muted);
    font-weight: 600;
  }
}


