/*
  Light theme styles for Mr Bet Casino HU
  - Mobile-first, responsive
  - BEM naming
  - Accessible focus styles
  - Stackable tables for small screens
*/

:root {
  --color-bg: #ffffff;
  --color-text: #1f2937; /* slate-800 */
  --color-muted: #6b7280; /* gray-500 */
  --color-primary: #0ea5e9; /* sky-500 */
  --color-accent: #22c55e; /* green-500 */
  --color-border: #e5e7eb; /* gray-200 */
  --color-surface: #f8fafc; /* slate-50 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --container: 1200px;
}

/* Base reset-ish */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid rgba(14,165,233,0.5);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: .5rem .75rem; z-index: 1000;
}
.skip-link:focus { left: .5rem; top: .5rem; border-radius: var(--radius-sm); }

/* Header */
.site-header { position: sticky; top: 0; background: #0b1220; color: #e5e7eb; border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.brand img { display: block; }
.nav__list { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; }
.site-header a { color: #e5e7eb; }
.site-header .btn--ghost { background: transparent; color: #e5e7eb; border-color: rgba(255,255,255,0.2); }
.site-header .btn--primary { background: #22c55e; color: #07130d; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); padding: .5rem .9rem; border: 1px solid transparent; box-shadow: var(--shadow-sm); transition: transform .05s ease, box-shadow .2s ease, background .2s ease; font-weight: 600; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--ghost { background: #fff; color: var(--color-text); border-color: var(--color-border); }
.btn--accent { background: var(--color-accent); color: #032711; }
.btn--lg { padding: .8rem 1.2rem; font-size: 1.05rem; }

/* Breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0; margin: 0; padding-left: 1rem; }
.breadcrumbs__item { color: var(--color-muted); }
.breadcrumbs__item a { color: var(--color-text); }
.breadcrumbs__item+ .breadcrumbs__item::before { content: "/"; margin: 0 .25rem; color: var(--color-muted); }

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; height: auto; display: block; }
.hero__overlay {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 1rem; pointer-events: none; /* overlay not blocking image focus */
}
.hero__overlay > * { pointer-events: auto; }
.hero__card { background: rgba(255,255,255,0.72); backdrop-filter: blur(8px) saturate(1.1); border: 1px solid rgba(0,0,0,0.06); padding: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); max-width: 38rem; }
.hero__title { margin: 0 0 .25rem; text-align: center; color: #111827; text-shadow: 0 2px 8px rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.25); }
.hero__subtitle { margin: 0 0 .75rem; text-align: center; color: #1f2937; text-shadow: 0 2px 8px rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.25); }

/* Desktop: left-aligned overlay */
@media (min-width: 768px) {
  .hero__overlay { justify-items: start; align-content: center; padding: 2rem; }
  .hero__title, .hero__subtitle { text-align: left; max-width: 40ch; }
}

/* Slots grid */
.slots { padding: 2rem 0; }
.slots__grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; padding: 0; margin: 0; }
.slots__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.slots__link { display: block; aspect-ratio: 1 / 1; }
.slots__link img { width: 100%; height: 100%; object-fit: cover; }

/* Payments grid */
.payments { padding: 2rem 0; background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.payments__title { margin: 0 0 .75rem; }
.payments__grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 0; margin: 0; }
.payments__item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .5rem; display: grid; place-items: center; }
.payments__item img { width: 100%; height: 44px; object-fit: contain; }
@media (min-width: 640px) { .payments__grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) { .payments__grid { grid-template-columns: repeat(8, 1fr); } }

@media (min-width: 480px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Content */
.content { padding: 2rem 0; }
.content__header h1 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.2vw + 1rem, 2.2rem); }

.list--check { list-style: none; padding: 0; margin: 0 0 1rem; }
.list--check li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.list--check li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }

/* Tables: responsive stack */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { padding: .6rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table thead th { background: var(--color-surface); font-weight: 700; }

/* Small screens: stack rows; labels injected via JS (data-label) */
@media (max-width: 640px) {
  .table.table--stack thead { display: none; }
  .table.table--stack tr { display: grid; grid-template-columns: 1fr; border-bottom: 8px solid var(--color-surface); }
  .table.table--stack td { display: grid; grid-template-columns: 10ch 1fr; gap: .75rem; }
  .table.table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--color-muted); }
}

/* Mobile-only indents for header (right) and content/footer (both sides) */
@media (max-width: 640px) {
  .site-header .container { padding-right: 1.5rem; }
  .content.container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-footer .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.footer__inner { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 0; }
.footer__links { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; flex-wrap: wrap; }
@media (min-width: 640px) { .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Orientation overlay for mobile landscape lock */
.orientation-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; }
.orientation-overlay[hidden] { display: none; }
.orientation-overlay__content { background: #fff; padding: 1rem 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-md); max-width: 90vw; text-align: center; }


