/*
  Light theme stylesheet for fortunica-livecasino.es
  - Uses mobile-first responsive approach
  - Provides BEM-style class naming
  - Comments describe components and key rules
*/

:root {
  /* Theme colors */
  --color-bg: #ffffff;
  --color-surface: #f6f7fb;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-primary: #2563eb; /* blue-600 */
  --color-primary-contrast: #ffffff;
  --color-border: #e2e8f0;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
}

/* Global resets and base styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
h1, h2, h3, .hero__title { font-family: 'Poppins', var(--font-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Utility containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #131a4e; /* updated header color */
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid #0f1340;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header__logo img { height: 40px; width: auto; filter: none; }
.nav__list { display: flex; gap: var(--space-2); padding: 0; margin: 0; list-style: none; }
.nav__item { display: flex; }
.site-header .button, .site-header .button--ghost { background: transparent; color: #e5e7eb; border-color: rgba(255,255,255,0.25); }
.site-header .button--primary { background: #00c2ff; color: #0b1020; border-color: #00c2ff; }
.site-header a:hover { text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}
.button:focus { outline: 3px solid rgba(37,99,235,0.35); outline-offset: 2px; }
.button--ghost { background: transparent; }
.button--primary { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }
.button--secondary { background: #111827; color: #fff; border-color: #111827; }

/* Hero banner */
.hero { position: relative; isolation: isolate; width: 100vw; margin-left: calc(50% - 50vw); }
.hero__image { width: 100vw; height: auto; max-height: none; object-fit: contain; object-position: center; display: block; }
.hero__overlay { position: absolute; inset: 0; background: transparent; }
.hero__content {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--space-8);
  text-align: center;
}
.hero__content > div,
.hero__content .hero__title,
.hero__content .hero__subtitle,
.hero__cta {
  /* ensure overlay sits behind content; we’ll add a light panel for readability */
}
.hero__panel {
  background: rgba(255,255,255,0.75);
  color: #0b1020;
  padding: var(--space-6);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px) saturate(1.2);
  max-width: 720px;
}
.hero__title { color: #0b1020; font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin: 0 0 var(--space-2); letter-spacing: 0.02em; text-shadow: none; }
.hero__subtitle { color: #1f2937; margin: 0 0 var(--space-4); font-size: clamp(1rem, 2.6vw, 1.125rem); text-shadow: none; }
.hero__cta { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; }
.hero .button--primary { box-shadow: 0 8px 24px rgba(0, 194, 255, 0.35), inset 0 0 12px rgba(255,255,255,0.2); background: linear-gradient(135deg, #00c2ff, #2563eb); border: none; }
.hero .button--secondary { background: #111827; border-color: #111827; color: #fff; }
.hero .button:hover { transform: translateY(-1px); transition: transform 120ms ease, box-shadow 120ms ease; }
.hero__title { position: relative; }
.hero__title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -0.5rem; width: 80px; height: 3px; background: linear-gradient(90deg, transparent, #00c2ff, transparent); border-radius: 2px; }

/* Sections */
.section { padding: var(--space-8) 0; }
.content h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.content h3 { font-size: var(--text-xl); margin-top: var(--space-6); margin-bottom: var(--space-3); }
.list { padding-left: 1.1rem; }
.list--ol { padding-left: 1.25rem; }

/* Tables: responsive wrapper with horizontal scroll on small screens and stacked view under 560px */
.table-responsive { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); text-align: left; }
.table thead th { background: #eef2ff; position: sticky; top: 0; z-index: 1; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }

/* Small screens: convert table to cards with data-labels applied by JS */
@media (max-width: 560px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--color-border); }
  .table th[scope="row"] { background: #f1f5f9; font-weight: 700; padding: var(--space-3) var(--space-4); }
  .table td { padding: var(--space-4); word-break: break-word; }
  /* Disable pseudo-labels in favor of real inline labels */
  .table td::before { content: none !important; }
  .cell-label { display: block; color: var(--color-muted); font-weight: 600; margin-bottom: var(--space-2); font-size: 0.85rem; }
}

/* Desktop: hide inline labels */
.cell-label { display: none; }

/* Slots gallery */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); padding: 0; list-style: none; }
.slots__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: var(--space-2); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: transform 140ms ease, box-shadow 140ms ease; }
.slots__item img { border-radius: 10px; }
.slots__item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(2,6,23,0.15); }

@media (min-width: 640px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .slots { grid-template-columns: repeat(6, 1fr); }
}

/* Payment strip */
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding: 0; margin: 0; list-style: none; align-items: center; }
@media (min-width: 640px) { .pay { grid-template-columns: repeat(6, max-content); justify-content: center; gap: var(--space-6); } }

/* Footer */
.site-footer { background: #f8fafc; color: #0f172a; margin-top: var(--space-12); border-top: 1px solid #e2e8f0; }
.footer__inner { display: grid; gap: var(--space-6); padding: var(--space-8) 0; align-items: center; grid-template-columns: 1fr; }
.footer__logo img { filter: none; }
.footer__inner { padding-left: var(--space-4); padding-right: var(--space-4); }
.footer__pay { margin-left: var(--space-4); }
.footer__nav .nav__list { flex-wrap: wrap; gap: var(--space-3); }
.link { color: #0f172a; }
.link:hover { color: #1f2937; }
.stores .store img { height: 48px; width: auto; }
.footer__pay { margin-top: var(--space-4); }
.footer__copy { text-align: center; margin: 0; padding: var(--space-4) 0; font-size: var(--text-sm); border-top: 1px solid #e2e8f0; color: #475569; }

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: auto 1fr auto; }
}

/* Accessibility tweaks */
:focus-visible { outline: 3px solid rgba(37,99,235,0.45); outline-offset: 2px; }

/* Payment logo hover styles */
.pay img { filter: none; opacity: 1; transition: transform 140ms ease, opacity 140ms ease; }
.pay img:hover { transform: translateY(-2px) scale(1.02); }


