/*
  Fortunica Casino – Light Theme Styles
  - Color system and CSS variables
  - Layout utilities
  - Header, breadcrumbs, banner with centered CTA
  - Slots grid
  - Content typography
  - Accessible, mobile-adaptive tables
  - Buttons
*/

/* ===============================
   CSS VARIABLES (Light theme)
   =============================== */
:root {
  /* Colors */
  --header-bg: #131a4e; /* per requirement */
  --text: #0b1026;
  --muted: #5c6480;
  --bg: #ffffff;
  --surface: #f5f7ff;
  --primary: #2f54eb;
  --primary-contrast: #ffffff;
  --overlay: rgba(19, 26, 78, 0.7);
  --border: #e3e7f3;

  /* Spacing */
  --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;
  --space-16: 64px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 20px rgba(16, 24, 40, 0.09);

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --h1: 38px;
  --h2: 28px;
  --h3: 22px;
  --base: 16px;
}

/* =================================
   BASE / RESET
   - Mobile-first, prevent horizontal scroll
   ================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--base);
  line-height: 1.6;
  overflow-x: hidden; /* Fix screen on mobile: no accidental horizontal scroll */
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

/* ===============================
   HEADER + NAVIGATION + BREADCRUMBS
   =============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
  transition: transform 220ms ease-in-out;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.logo img { filter: none; }

.primary-nav .nav__list {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.nav__item { list-style: none; }

.nav__link {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}
.nav__link:focus,
.nav__link:hover { opacity: 1; text-decoration: underline; }

.header__cta { display: none; }
@media screen and (min-width: 768px) {
  .header__cta { display: block; }
}

/* Mobile: show only Start nu button; hide nav */
@media screen and (max-width: 767px) {
  .primary-nav { display: none; }
  .header__cta { display: block; }
}

.breadcrumbs {
  background: #101544;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.breadcrumbs__list {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin: 0;
  color: #c9cdee;
}
.breadcrumbs__item { list-style: none; }
.breadcrumbs__item a { color: #c9cdee; text-decoration: none; }
.breadcrumbs__item[aria-current="page"] { color: #ffffff; }

/* Hide-on-scroll state */
.site-header--hidden {
  transform: translateY(-100%);
}

/* ===============================
   BANNER WITH CENTERED CTA
   =============================== */
.banner {
  position: relative;
  min-height: 320px;
  overflow: hidden; /* prevent visual gaps if content exceeds image at small sizes */
}
.banner__image {
  width: 100%;
  height: clamp(220px, 36vw, 420px); /* slightly smaller to avoid obscuring face */
  object-fit: cover;
  object-position: 50% 30%; /* shift focal point upward */
}
.banner__overlay {
  position: absolute;
  inset: 0;
  background: transparent; /* full image visible; panel will be semi-transparent */
}
.banner__cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.banner__panel {
  background: rgba(19, 26, 78, 0.72);
  backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-6);
  max-width: 720px;
  /* Ensure only CTA buttons are interactive */
  pointer-events: none;
}
.banner__title {
  margin: 0 0 var(--space-2) 0;
  color: #fff;
  font-size: clamp(22px, 3.4vw, 42px);
}
.banner__subtitle {
  margin: 0 0 var(--space-4) 0;
  color: #e8ebff;
}
.banner__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.banner__actions .btn { pointer-events: auto; }

/* Mobile banner adjustments */
@media screen and (max-width: 480px) {
  .banner__panel {
    padding: var(--space-4);
    margin: 0 var(--space-3);
  }
  .banner__title { font-size: clamp(20px, 6vw, 28px); }
  .banner__subtitle { font-size: 14px; }
}

/* Fix mobile: remove extra gap under banner image */
picture, .banner img { display: block; }

/* Reduce spacing on first section after banner for mobile */
@media screen and (max-width: 640px) {
  /* Increase banner image height for better composition on phones */
  .banner__image {
    height: 60vh;      /* scale with viewport height */
    min-height: 360px; /* ensure enough space for CTA panel */
    object-position: 50% 35%;
  }
  .banner__cta { padding: var(--space-6) var(--space-3); }
  .slots { padding-top: var(--space-8); }
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:focus { outline: 2px solid #fff; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: transparent; }

/* Removed universal hover/active per request */

/* Removed universal hover/active for buttons */

/* ===============================
   SLOTS GRID (12 items; 6 cols on desktop)
   =============================== */
.slots { padding: var(--space-12) 0 var(--space-10) 0; background: var(--surface); }
.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}
.slots__item { list-style: none; }
.slots__item figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.slots__item img { width: 100%; height: 100%; object-fit: cover; }
.slots__link { display: block; position: relative; }
.slots__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.0);
  transition: background 160ms ease, transform 160ms ease;
}
.slots__link:hover::after { background: rgba(0,0,0,0.06); }
.slots__link:active { transform: translateY(1px); }
@media screen and (min-width: 600px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 1024px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===============================
   CONTENT / TYPOGRAPHY
   =============================== */
.content { padding: var(--space-12) 0; }
.article__header h2 { font-size: var(--h2); margin: 0 0 var(--space-3) 0; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0 0 var(--space-3) 0; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-3) 0; }

/* ===============================
   ACCORDION (FAQ)
   =============================== */
details.accordion {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0;
}
details.accordion + details.accordion { margin-top: var(--space-3); }
details.accordion[open] { box-shadow: var(--shadow-md); }

summary.accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: #0a1a66;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary.accordion__summary:focus { outline: none; }
summary.accordion__summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
summary.accordion__summary::-webkit-details-marker { display: none; }
summary.accordion__summary::after {
  content: "\25BC"; /* down triangle */
  font-size: 12px;
  color: var(--muted);
  margin-left: var(--space-4);
  transition: transform 160ms ease;
}
details[open] > summary.accordion__summary::after { transform: rotate(-180deg); }

.accordion__content {
  padding: 0 16px 16px 16px;
}

/* ===============================
   ACCESSIBLE, MOBILE-ADAPTIVE TABLES
   - JS adds data-label to each <td> based on <thead>
   - On small screens: stack rows as cards, show labels via ::before
   =============================== */
.table-container {
  overflow-x: auto; /* Non-intrusive fallback */
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: var(--space-4) 0;
}

table { width: 100%; border-collapse: collapse; }
thead th, thead td { text-align: left; background: #f0f3ff; color: #0a1a66; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:hover { background: #fafbff; }

/* Stack on mobile */
@media screen and (max-width: 640px) {
  .responsive-table thead { display: none; }
  .responsive-table tbody tr { display: block; border-bottom: 1px solid var(--border); }
  .responsive-table tbody tr + tr { margin-top: var(--space-2); }
  .responsive-table tbody td {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: var(--space-2);
    padding: 10px 12px;
  }
  .responsive-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
}

/* ===============================
   FOOTER
   =============================== */
.site-footer {
  background: #0f143e;
  color: #c9cdee;
  padding: var(--space-8) 0;
}
.site-footer p { margin: 0; text-align: center; }

/* Footer payments row */
.footer-payments {
  margin-bottom: var(--space-6);
}
.payments__title {
  font-size: 14px;
  color: #e0e3fb;
  text-align: center;
  margin: 0 0 var(--space-3) 0;
}
.payments__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: center;
}
@media screen and (min-width: 640px) {
  .payments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media screen and (min-width: 1024px) {
  .payments__grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.payments__item { list-style: none; display: flex; justify-content: center; }
.payments__item img { max-height: 28px; width: auto; filter: brightness(1.1) contrast(1.05); }


