/*
  Light theme styles for Fortunica Casino guide
  - Mobile-first, responsive layout
  - Component sections documented inline
*/

/* Root theme tokens (colors, spacing, radii, shadows) */
:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fb;
  --color-text: #0b1320;
  --color-muted: #5d6472;
  --color-primary: #1363ff;
  --color-primary-600: #0e4dd1;
  --color-ghost: rgba(255, 255, 255, 0.85);
  --color-overlay: rgba(12, 19, 32, 0.55);
  --color-header: #131a4e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.12);

  --container-max: 1200px;
  --gutter: 16px;
}

/* CSS reset (minimal) */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, 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; }

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }
.section-lead { color: var(--color-muted); margin-top: -6px; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: auto;
}
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; border: 1px solid transparent; transition: all .2s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-600); }
.btn--secondary { background: #fff; border-color: rgba(11,19,32,0.1); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: rgba(11,19,32,0.2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--lg { padding: 12px 20px; font-size: 1.0625rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--color-header); color: #fff;
  border-bottom: 1px solid rgba(11,19,32,0.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand__logo { width: 140px; height: auto; }
.main-nav__list { display: none; list-style: none; gap: 16px; padding: 0; margin: 0; }
.main-nav__link { padding: 8px 10px; border-radius: 8px; color: #e8eeff; }
.main-nav__link:hover { background: rgba(255,255,255,0.08); }
.header__actions { display: flex; gap: 10px; }
.site-header .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.site-header .btn--secondary:hover { background: rgba(255,255,255,0.08); }

@media screen and (min-width: 992px) {
  .main-nav__list { display: flex; }
}

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); border-bottom: 1px solid rgba(11,19,32,0.06); }
.breadcrumbs__list { display: flex; list-style: none; gap: 8px; padding: 8px 0; margin: 0; flex-wrap: wrap; }
.breadcrumbs__item { color: var(--color-muted); }
.breadcrumbs__link { color: var(--color-text); }
.breadcrumbs__item+ .breadcrumbs__item::before { content: "/"; margin-right: 8px; color: var(--color-muted); }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__image { width: 100%; height: auto; display: block; }
.hero__cta {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
}
.hero__cta > div, .hero__cta { text-align: center; }
.hero__panel { background: rgba(19, 26, 78, 0.75); padding: 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); backdrop-filter: blur(2px); }
.hero__title, .hero__subtitle, .hero__actions { position: relative; z-index: 1; }
.hero__title { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); }
.hero__subtitle { color: var(--color-ghost); margin: 0 0 16px; }
.hero__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* Payments strip */
/* payments strip removed from body; icons shown in footer only */

/* Slots grid */
.slots { padding: 28px 0; }
.slots__grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.slots__card { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.slots__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

@media screen and (min-width: 600px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 900px) {
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (min-width: 1200px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Content blocks */
.content { padding: 28px 0 40px; }
.content h2 { margin-top: 28px; }
.content h3 { margin-top: 18px; color: var(--color-text); }
.content p, .content ul, .content ol { margin-top: 12px; }

/* Responsive table wrapper with mobile adaptation */
.table-wrap { border: 1px solid rgba(11,19,32,0.08); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; margin: 12px 0; }
.responsive-table { width: 100%; border-collapse: collapse; }
.responsive-table thead { background: var(--color-surface); }
.responsive-table th, .responsive-table td { padding: 12px; text-align: left; vertical-align: top; }
.responsive-table tr + tr { border-top: 1px solid rgba(11,19,32,0.06); }

/* Mobile stacked table pattern */
@media screen and (max-width: 640px) {
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; }
  .responsive-table td { display: grid; grid-template-columns: 40% 1fr; gap: 8px; align-items: start; }
  .responsive-table td:first-child { font-weight: 600; color: var(--color-text); grid-template-columns: 1fr; }
  /* Add implicit labels using data attributes via JS for more complex tables if needed */
}

/* Footer */
.site-footer { border-top: 1px solid rgba(11,19,32,0.08); background: var(--color-surface); }
.footer__inner { padding: 28px 0; display: grid; gap: 20px; }
.footer__title { margin: 0; }
.footer__payments { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer__payments img { height: 22px; filter: grayscale(0.2); }
.footer__copy { color: var(--color-muted); margin: 0; }

/* Fix the screen in the mobile version (avoid horizontal scroll, fit content) */
html, body { overscroll-behavior: contain; }
body { overflow-x: hidden; }

/* Mobile-specific paddings and header right-side spacing */
@media screen and (max-width: 767px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .content { padding-left: 10px; padding-right: 10px; }
  .header__inner { padding-right: 20px; }
}


