/*
  Mr Bet Poland – Light Theme Styles
  - Mobile-first, responsive layout
  - BEM naming
  - Accessible focus states
  - Tables stack on small screens
  - Comments explain layout choices and component responsibilities
*/

/* CSS Variables: theming tokens for colors, spacing, typography */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f9fc;
  --color-text: #0b1a33;
  --color-text-muted: #5b6b87;
  --color-primary: #1a6aff;
  --color-primary-contrast: #ffffff;
  --color-border: #dbe3ef;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 38, 76, 0.08);
  --shadow-md: 0 10px 20px rgba(13, 38, 76, 0.12);

  --container-max: 1200px;
  --gutter: 1rem; /* scales with user zoom */

  --font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --line-height: 1.6;
}

/* Global Reset (minimal) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 16px/var(--line-height) var(--font-family);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus styles: visible, high contrast */
:focus-visible {
  outline: 3px solid #99b8ff;
  outline-offset: 2px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { margin-block: 2.5rem; }
.section-title { margin: 0 0 1rem; font-size: 1.5rem; }

.prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }

/* Skip link: visible when focused for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: .5rem .75rem;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b1a33; /* dark header */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
  gap: .75rem;
}
.site-header__logo img { display: block; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ensure nav/link contrast on dark header */
.site-header a { color: #ffffff; }
.site-header a:hover { color: #ffffff; text-decoration: none; }
.site-header .btn--ghost { background: rgba(255,255,255,0.08); color: #ffffff; border-color: rgba(255,255,255,0.2); }
.site-header .btn--ghost:hover { background: rgba(255,255,255,0.16); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s ease, transform .05s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--primary:hover { filter: brightness(0.95); text-decoration: none; }
.btn--ghost { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: #eef3ff; text-decoration: none; }

/* Hero */
.hero { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-block: 1rem; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
/* Mobile-first: center CTA overlay within banner */
.hero__media picture, .hero__media img { display: block; width: 100%; }
.hero__media img { height: auto; object-fit: cover; }
.hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 640px; /* keep same size as desktop card unless constrained */
  width: calc(100% - 2rem);
  background: rgba(11, 26, 51, 0.6);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: saturate(120%) blur(4px);
  display: grid;
  gap: .5rem;
  text-align: center;
}
.hero__title { margin: 0; font-size: 1.5rem; }
.hero__subtitle { margin: 0; color: #e6ecf7; }
.hero__actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

/* Slots grid: 12 images, 6 per row on desktop; wrap on small screens */
.slots { padding-block: 2rem; }
.slots__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr)); /* mobile-first */
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.slots__item { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.slots__link { display: block; height: 100%; }
.slots__link img { width: 100%; height: 100%; object-fit: cover; }

/* Content */
.content { padding-block: 2rem; }

/* Responsive table pattern: scrollable container + stacked cells on small screens */
.table-responsive { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .5rem; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table caption { text-align: left; padding: .5rem; color: var(--color-text-muted); font-size: .875rem; }
.table th, .table td { padding: .75rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table thead th { background: var(--color-surface); position: sticky; top: 0; z-index: 1; }
.table tr:last-child td { border-bottom: 0; }

/* Stacked table on very small screens: each row becomes blocks with data-label */
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack tr { display: grid; grid-template-columns: 1fr; gap: .25rem; border-bottom: 1px solid var(--color-border); padding-block: .5rem; }
  .table--stack td { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; border: 0; padding: .25rem .25rem; }
  .table--stack td::before { content: attr(data-label); color: var(--color-text-muted); font-weight: 600; }
}

/* Payments strip (decorative logos) */
.payments { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.payments__strip { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; justify-content: center; padding-block: 1rem; }
.payments__strip img { filter: grayscale(0.1); opacity: .9; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: 1rem; }
.site-footer__copy { margin: 0; color: var(--color-text-muted); }
.site-footer__nav { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { color: var(--color-text); }

/* Desktop enhancements */
@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .hero__title { font-size: 2rem; }
  .slots__list { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  /* 6 per row on desktop */
  .slots__list { grid-template-columns: repeat(6, minmax(0,1fr)); }
  /* Enlarge hero banner and place CTA on semi-transparent background overlay */
  .hero { position: relative; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media picture, .hero__media img { display: block; width: 100%; }
  .hero__media img { height: 60vh; min-height: 520px; max-height: 720px; object-fit: cover; }
  .hero__content {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 640px;
    background: rgba(11, 26, 51, 0.6);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: saturate(120%) blur(4px);
    text-align: center; /* center headline and subtitle */
  }
  .hero__subtitle { color: #e6ecf7; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn--ghost { background: rgba(255,255,255,0.14); color: #ffffff; border-color: rgba(255,255,255,0.35); }
  .hero__actions .btn--ghost:hover { background: rgba(255,255,255,0.22); }
}

/* Orientation lock visual hint (optional): prevent over-scrolling aesthetics on mobile */
@media (max-width: 640px) {
  body { overscroll-behavior-y: contain; }
}


