/*
  Fortunica Casino - Light Theme Styles
  - Mobile-first, responsive typography and layout
  - Accessible color contrast and focus states
  - Responsive tables (stacked on small screens)
  - Components: header, hero, buttons, content sections, tables, grids, footer
*/

/* CSS Reset (minimal) and base variables */
:root {
  --bg: #ffffff;
  --text: #1c1f24;
  --muted: #5a6472;
  --primary: #2d6cdf;
  --primary-contrast: #ffffff;
  --primary-600: #255cc0;
  --surface: #f5f7fb;
  --border: #e3e7ef;
  --focus: #ffb100;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; background: #000; color: #fff; padding: 8px 10px; border-radius: 8px; z-index: 9999; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus styles for accessibility */
:where(a, button, [tabindex="0"]) {
  outline: none;
}
:where(a, button, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #131a4e; /* header color per request */
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand img { display: block; }
.brand:focus-visible img { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.primary-nav .nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 12px;
}
.site-header .btn-text { color: #ffffff; }
.site-header .btn-text:hover { background: rgba(255,255,255,.08); }
.site-header .btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.site-header .nav-list a { color: #ffffff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 10px 14px; font-weight: 600; border: 1px solid transparent; transition: .18s ease-in-out; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); text-decoration: none; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(45,108,223,.08); text-decoration: none; }
.btn-text { background: transparent; color: var(--text); border-color: transparent; padding: 8px 10px; }
.btn-text:hover { background: var(--surface); text-decoration: none; }

/* Hero */
.hero { background: var(--surface); }
/* Make banner full-bleed and keep original asset size on desktop */
.hero .container { max-width: none; padding: 0; }
.hero-inner { display: block; padding: 0; }
.hero-media { position: relative; }
.hero-media picture { display: block; }
.hero-media picture img { display: block; margin: 0 auto; width: 100%; height: auto; max-width: 100%; }
/* Dark overlay for readability */
/* Darken the right side of the banner for CTA readability */
/* Softer overall overlay for readability */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,.44) 100%); pointer-events: none; }
/* Right-aligned CTA overlay */
.hero-content { position: absolute; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: min(900px, 92vw); display: grid; gap: 12px; color: #fff; padding: 16px; border-radius: 12px; background: rgba(0,0,0,.22); backdrop-filter: blur(2px); text-align: center; }
.hero-content h1 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: .2px; text-shadow: 0 2px 6px rgba(0,0,0,.6); font-size: clamp(24px, 3.6vw, 44px); color: #ffffff; }
.hero-content .hero-cta { margin-top: 4px; }
.hero-content .btn-primary { box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.hero-content .lead { color: #e5e9f2; font-size: clamp(14px, 1.5vw, 18px); font-weight: 400; letter-spacing: 0; }
.hero-content .btn-outline { color: #ffffff; border-color: #ffffff; }
.hero-content .btn-outline:hover { background: rgba(255,255,255,.12); }
/* CTA button to match screenshot */
.btn-cta { background: #e11d74; border-color: #e11d74; color: #ffffff; border-radius: 10px; padding: 14px 22px; font-size: 18px; font-weight: 700; box-shadow: 0 8px 20px rgba(225,29,116,.25); }
.btn-cta:hover { background: #c41464; border-color: #c41464; text-decoration: none; }
.btn-cta:active { transform: translateY(1px); }
.lead { color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 28px 0; }
.content > h2 { margin-top: 0; }
.content h3 { margin-top: 22px; }
.content p { margin: 10px 0; }
.content ul, .content ol { padding-left: 20px; }

/* Table (responsive) */
.table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table thead th { background: var(--surface); font-weight: 700; }
.table tr:last-child td { border-bottom: none; }
.table caption { caption-side: bottom; padding: 8px 12px; color: var(--muted); font-size: 12px; }

/* Mobile stacked table: use data-label for headers */
@media (max-width: 720px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; }
  .table td { display: grid; grid-template-columns: 40% 1fr; gap: 10px; border: none; padding: 8px 14px; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
  .table-responsive { border-radius: 10px; }
}

/* Payment logos (used in footer) */
.pay-logos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; list-style: none; padding: 8px; margin: 0; align-items: center; }
.pay-logos li { display: flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }

/* Slots grid */
.slots-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.slot-card a { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.slot-thumb { position: relative; border-radius: 22px; overflow: hidden; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.slot-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 22px; }
.slot-thumb .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s ease-in-out; }
.slot-thumb .play-btn { background: #e11d74; color: #fff; border: none; padding: 10px 14px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 16px rgba(225,29,116,.3); }
.slot-thumb:hover .play-overlay { opacity: 1; }
.slot-title { display: block; font-size: 14px; color: var(--text); text-align: left; padding-left: 2px; }

/* CTA block */
.cta { background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%); }
.cta .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); background: #131a4e; }
.footer-inner { display: grid; gap: 8px; padding: 20px 16px; align-items: center; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.8); }
.footer-nav .nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .footer-nav .nav-list a { color: #ffffff; }

.footer-pay { padding-top: 8px; }
.footer-pay h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Footer-specific styling for payment tiles on dark background */
.site-footer .pay-logos li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.site-footer .pay-logos li:hover { background: rgba(255,255,255,.12); box-shadow: 0 2px 10px rgba(0,0,0,.25), 0 0 14px rgba(255,255,255,.12); transform: translateY(-1px); }
.site-footer .pay-logos img { filter: brightness(0.98) contrast(1.05) saturate(1.02); }

/* Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Layout adjustments at larger viewports */
@media (min-width: 768px) {
  /* Keep banner at original size; if viewport >= asset width, center without scaling */
  .hero-media picture img { max-width: 100%; }
  .pay-logos { grid-template-columns: repeat(6, minmax(0,1fr)); padding: 12px; }
  /* 2 rows x 6 columns desktop grid (12 items) */
  .slots-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
  .slot-thumb img { height: 170px; }
}

/* Mobile screen lock hint: prevent overscroll bounce and lock orientation via meta + JS */
@media (max-width: 600px) {
  body { overscroll-behavior-y: none; }
  /* On small screens, allow banner to scale to fit to remain responsive */
  .hero-media picture img { width: 100%; height: auto; max-width: 100%; }
  /* Center CTA on mobile over the banner */
  .hero-content { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: min(90vw, 520px); text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-media::after { background: rgba(0,0,0,.45); }
}

/* Improve slot image legibility: contain fit, slight padding, larger radius */
.slots-grid img { object-fit: contain; background: #fff; padding: 6px; border-radius: 20px; }
.slots-grid a { border-radius: 20px; }
.slots .container { max-width: 1240px; }


