/*
  ICE Casino România - Light Theme Styles
  - Mobile-first, responsive
  - Accessible components (buttons, tables, breadcrumbs)
  - BEM naming, comments for each major block
*/

/* CSS Variables: light theme palette and spacing scale */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-text: #0f172a; /* slate-900 */
  --color-text-muted: #475569; /* slate-600 */
  --color-primary: #2563eb; /* blue-600 */
  --color-primary-contrast: #ffffff;
  --color-accent: #0ea5e9; /* sky-500 */
  --color-border: #e2e8f0; /* slate-200 */
  --color-overlay: rgba(15, 23, 42, 0.55);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.1);

  --container-max: 1200px;
  --gutter: 16px;
  --gutter-lg: 24px;

  --step-xs: 12px;
  --step-sm: 14px;
  --step-md: 16px;
  --step-lg: 20px;
  --step-xl: 28px;
  --step-2xl: 36px;
}

/* Global resets and base typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: var(--step-md);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden; /* prevent sideways scroll on mobile */
  overscroll-behavior: none; /* lock page overscroll on mobile */
  touch-action: manipulation; /* reduce ghost taps/zoom */
}
.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; }

/* Containers and layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .08s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 22px; font-size: var(--step-lg); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--primary:hover { background: #1d4ed8; }
.btn--secondary { background: var(--color-accent); color: var(--color-primary-contrast); }
.btn--secondary:hover { background: #0284c7; }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: #94a3b8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px; }
.site-header__logo img { display: block; height: 28px; width: auto; }
.primary-nav__list { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
/* Smaller header buttons */
.site-header .btn { padding: 6px 10px; font-size: var(--step-sm); }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.breadcrumbs__list { display: flex; gap: 6px; align-items: center; list-style: none; padding: 8px 0 8px 12px; margin: 0; font-size: var(--step-sm); color: var(--color-text-muted); }
.breadcrumbs__item a { color: inherit; text-decoration: none; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; margin-left: 6px; color: #94a3b8; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 52svh; display: grid; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__overlay {
  margin: auto; /* center on both mobile and desktop */
  background: var(--color-overlay);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: saturate(140%) blur(2px);
  box-shadow: var(--shadow);
}
.hero__title { margin: 0 0 8px; font-size: clamp(22px, 4vw, 36px); line-height: 1.2; }
.hero__subtitle { margin: 0 0 16px; font-size: clamp(14px, 2.5vw, 20px); color: #e2e8f0; }

/* Slots grid */
.slots { padding-block: 28px; }
.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* mobile: 2 per row */
  gap: 12px;
  list-style: none; padding: 0; margin: 12px 0 0;
}
.slots__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 10px; }
.slots__item img { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius-sm); transition: transform .18s ease, box-shadow .18s ease; }

/* Clickable slot link: hover/focus effects */
.slots__link { display: inline-block; border-radius: var(--radius-sm); }
.slots__link:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.slots__link:hover img,
.slots__link:focus img { transform: scale(1.04); box-shadow: 0 8px 20px rgba(2, 6, 23, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .slots__link:hover img,
  .slots__link:focus img { transform: none; box-shadow: 0 4px 10px rgba(2, 6, 23, 0.12); }
}

/* Content */
.content { padding-block: 28px; }
.prose h2 { font-size: var(--step-2xl); margin: 24px 0 12px; }
.prose h3 { font-size: var(--step-xl); margin: 20px 0 10px; }
.prose h4 { font-size: var(--step-lg); margin: 16px 0 8px; }
.prose p { margin: 0 0 12px; color: var(--color-text); }
.prose ul, .prose ol { margin: 0 0 12px 20px; }
.prose details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--color-surface); margin: 10px 0; }
.prose summary { cursor: pointer; font-weight: 600; }

/* Tables: scrollable on small screens, stacked layout with data-label */
.table-responsive { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); box-shadow: var(--shadow); overflow: hidden; margin: 12px 0; }
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--color-surface); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table th { font-weight: 700; font-size: var(--step-sm); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .02em; }
.table tr:last-child td { border-bottom: 0; }

/* Stacked table for small screens */
@media screen and (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-border); }
  .table td { display: grid; grid-template-columns: 160px 1fr; gap: 8px; border: 0; padding: 10px 12px; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--color-text-muted); }
}

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); margin-top: 28px; }
.site-footer__grid { display: grid; gap: 20px; padding-block: 20px; }
.payments__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; align-items: center; }
.payments__list img { height: 18px; width: auto; object-fit: contain; filter: grayscale(0.2) contrast(1.1); }
.legal { color: var(--color-text-muted); font-size: var(--step-sm); }

/* Responsive breakpoints */
@media screen and (min-width: 640px) {
  .slots__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments__list { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .payments__list img { height: 20px; }
}

@media screen and (min-width: 768px) {
  .hero { min-height: 60svh; }
}

@media screen and (min-width: 1024px) {
  /* Desktop: 6 items per row in slots */
  .slots__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero__overlay { padding: 28px 32px; }
}

/* Mobile screen lock helpers (optional stronger lock via .screen-locked) */
body.screen-locked { position: fixed; inset: 0; overflow: hidden; }


