/*
  Fortunica Casino - Light Theme Styles
  - Header color: #131a4e (spec)
  - Mobile-first, responsive grid
  - ARIA-friendly focus states
  - Components: header, nav, breadcrumb, hero, slots, content, tables, footer
*/

/* =============================
   CSS Variables (Light theme)
   ============================= */
:root {
  --color-header-bg: #131a4e; /* Specified header color */
  --color-surface: #ffffff;
  --color-surface-alt: #f6f7fb;
  --color-text: #121212;
  --color-text-muted: #5b6178;
  --color-primary: #1e3a8a;
  --color-accent: #f59e0b;
  --color-border: #e5e7eb;
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius-md: 12px;
  --radius-sm: 8px;

  --container-max: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
}

/* ============
   Base Resets
   ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-surface);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden; /* Fix horizontal scrolling on mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 2px;
}

/* ======
   Header
   ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-header-bg);
  color: #fff;
}
.header__inner {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) 0;
}
.header__logo img { display: block; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 3px;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm); background: transparent; color: #fff; cursor: pointer;
}
.nav__bar { width: 20px; height: 2px; background: #fff; }
.nav__list { display: none; list-style: none; margin: 0; padding: 0; }
.nav__list.is-open { display: block; position: absolute; top: 64px; right: 16px; background: var(--color-header-bg); padding: var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.nav__link { display: inline-block; padding: var(--space-2) var(--space-3); color: #fff; }

.header__cta { display: none; }

@media screen and (min-width: 960px) {
  .nav__toggle { display: none; }
  .header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .nav__list { display: flex; gap: var(--space-2); position: static; justify-content: center; }
  .primary-nav { margin-left: 0; justify-self: center; }
  .header__cta { display: inline-block; margin-left: 0; justify-self: end; }
}

/* ==========
   Breadcrumb
   ========== */
.breadcrumb { background: rgba(255,255,255,0.08); backdrop-filter: saturate(140%) blur(6px); }
.breadcrumb__list { margin: 0; padding: var(--space-2) 0 var(--space-2) var(--space-4); display: flex; align-items: center; gap: var(--space-2); list-style: none; }
.breadcrumb__item { color: #e2e8f0; font-size: 0.875rem; }
.breadcrumb__item a { color: #fff; text-decoration: underline; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin: 0 var(--space-2); color: #cbd5e1; }

/* ====
   Hero
   ==== */
.hero { position: relative; }
.hero__img { width: auto; height: auto; margin: 0 auto; }
.hero__overlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center;
  padding: var(--space-6) var(--space-8); max-width: min(92%, 720px);
  background: rgba(255,255,255,0.78); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  backdrop-filter: saturate(140%) blur(4px);
}
.hero__title { color: #0f172a; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 var(--space-2); text-shadow: none; }
.hero__subtitle { color: #334155; margin: 0 0 var(--space-4); }
.hero__overlay::before { content: none; }
.hero__overlay > * { position: relative; z-index: 1; }

/* =====
   Slots
   ===== */
.slots { background: var(--color-surface); padding: var(--space-10) 0; }
.slots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.slots__item { border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; transition: transform .2s ease; }
.slots__item:hover { transform: translateY(-2px); }
.slots__item img { border-radius: var(--radius-sm); }

@media screen and (min-width: 640px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 1024px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* =======
   Content
   ======= */
.content { padding: var(--space-12) 0; }
.content h1, .content h2, .content h3, .content h4 { line-height: 1.25; }
.content h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 0; }
.content h2 { margin-top: var(--space-10); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.content h3 { margin-top: var(--space-8); font-size: 1.125rem; }
.content h4 { margin-top: var(--space-6); font-size: 1rem; color: var(--color-text-muted); }
.content p { margin: var(--space-3) 0; color: var(--color-text); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin: var(--space-2) 0; }
.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--color-text-muted); }

/* ======
   Tables
   ====== */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table thead th { background: var(--color-surface-alt); font-weight: 600; }

/* Mobile stacked table view (JS adds data-label attributes) */
@media screen and (max-width: 640px) {
  .table.stacked thead { display: none; }
  .table.stacked tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
  .table.stacked td { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-2); border: 0; padding: 8px 12px; }
  .table.stacked td::before { content: attr(data-label); font-weight: 600; color: var(--color-text-muted); }
}

/* =====
   Buttons
   ===== */
.btn { display: inline-block; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; line-height: 1; cursor: pointer; }
.btn--primary { background: #22c55e; color: #0b1f1a; }
.btn--accent { background: var(--color-accent); color: #111827; }
.btn--lg { padding: 14px 22px; font-size: 1.0625rem; }

/* =====
   Footer
   ===== */
.site-footer { background: var(--color-surface-alt); border-top: 1px solid var(--color-border); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-10) 0; }
.footer__title { margin: 0 0 var(--space-3); font-size: 1rem; color: var(--color-text-muted); }
.payments { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-4); list-style: none; margin: 0; padding: 0; align-items: center; }
.payments img { width: 100%; max-height: 28px; object-fit: contain; filter: grayscale(20%); }
.footer__bottom { border-top: 1px solid var(--color-border); padding: var(--space-4) 0; color: var(--color-text-muted); font-size: 0.9rem; }

@media screen and (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr; }
}

/* ========================
   Utility / State classes
   ======================== */
.hidden { display: none !important; }
.no-scroll { overflow: hidden; height: 100vh; }

/* ====================
   FAQ Accordion Styles
   ==================== */
#faq details { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; padding: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
#faq summary { cursor: pointer; font-weight: 600; list-style: none; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "▾"; float: right; transition: transform .2s ease; }
#faq details[open] summary::after { transform: rotate(180deg); }
#faq details > *:not(summary) { margin-top: var(--space-3); }

/* =====================
   Mobile-specific tweaks
   ===================== */
@media screen and (max-width: 959px) {
  .nav__toggle { display: none; }
  .nav__list { display: none; }
  .site-header .container { padding-right: var(--space-6); }
  .header__cta { display: inline-block; margin-left: auto; }
}

@media screen and (max-width: 767px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}



