/*
  Light Theme Stylesheet
  - Color tokens and typography
  - Layout utilities and containers
  - Components: header, buttons, hero/banner, slots grid, tables, footer
  - Responsive rules and mobile adaptations
  - Accessibility helpers
*/

/* Root color variables (light theme) */
:root {
  --color-bg: #f8fafc;            /* background */
  --color-surface: #ffffff;       /* cards, surfaces */
  --color-muted: #e2e8f0;         /* borders, subtle lines */
  --color-text: #0f172a;          /* primary text */
  --color-text-muted: #475569;    /* secondary text */
  --color-primary: #0ea5e9;       /* primary brand */
  --color-primary-strong: #0284c7;/* brand hover */
  --color-accent: #22c55e;        /* accent (CTA) */
  --color-accent-strong: #16a34a; /* accent hover */
  --color-header: #0b1220;        /* header & footer bg */
  --color-header-text: #e2e8f0;   /* header text */
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.08);
  --radius: 12px;
}

/* Global resets & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--color-bg); color: var(--color-text); }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
table { border-collapse: collapse; width: 100%; }

/* Containers and layout helpers */
.container {
  width: min(1180px, 94%);
  margin-inline: auto;
}
.section { padding: 3rem 0; }
.content > * + * { margin-top: 1rem; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-text);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-header);
  color: var(--color-header-text);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand img { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }
.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Buttons */
.btn {
  --pad-x: 1rem;
  --pad-y: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .06s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:focus { outline: 2px solid var(--color-text); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-text { color: var(--color-text); background: transparent; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-strong); }
.btn-secondary { background: var(--color-surface); border-color: var(--color-muted); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-text-muted); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-strong); }
.btn-block { width: 100%; padding: 0.875rem 1.25rem; font-size: 1.05rem; }

/* Hero / Banner */
.hero {
  position: relative;
  display: block;
}
.hero-media img, .hero-media source { width: 100%; height: auto; object-fit: contain; background: #0b1220; }
.hero-media { position: relative; z-index: 0; }
.hero-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92%);
  background: rgba(15, 23, 42, 0.64); /* semi-transparent block */
  color: #fff;
  padding: 1.25rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-cta h1 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.25; }
.hero-sub { margin: 0 0 1rem; color: #e2e8f0; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Desktop alignment: CTA to the left */
@media (min-width: 768px) {
  .hero-cta { left: 3%; top: 50%; transform: translateY(-50%); padding: 1.5rem 1.75rem; }
}

/* Mobile: keep intrinsic aspect, no upscaling beyond width */
@media (max-width: 767.98px) {
  .hero { display: block; }
  .hero-media img { width: 100%; height: auto; object-fit: contain; }
}

/* Sections */
h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0.5rem 0; color: var(--color-text); }
li { margin: 0.25rem 0; }

/* Slots Grid */
.slots-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* mobile default 3 per row */
  gap: 0.75rem;
  padding: 0;
  margin: 0.5rem 0 0;
}
.slots-grid a { display: block; background: var(--color-surface); border: 1px solid var(--color-muted); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.slots-grid img { aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 768px) {
  .slots-grid { grid-template-columns: repeat(6, 1fr); /* desktop 6 per row */ }
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--color-surface); border: 1px solid var(--color-muted); border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 0.75rem 0; }
.table { width: 100%; border-collapse: collapse; }
.table caption { text-align: left; padding: 0.75rem 1rem; color: var(--color-text-muted); font-size: 0.95rem; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-top: 1px solid var(--color-muted); vertical-align: top; }
.table thead th { background: #f1f5f9; position: sticky; top: 0; z-index: 1; }

/* Mobile table adaptation: stack cells with labels using data-label attribute */
@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-muted); }
  .table td { display: grid; grid-template-columns: 9ch 1fr; gap: 0.75rem; border: none; padding: 0.5rem 0.75rem; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--color-text-muted); }
  .table-wrap { border: none; background: transparent; box-shadow: none; }
}

/* Footer */
.site-footer { background: var(--color-header); color: #cbd5e1; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.footer-links { list-style: none; display: flex; gap: 0.75rem; padding: 0; margin: 0; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Payments strip */
.payments { width: 100%; }
.payments-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.5rem 1rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .payments-list { grid-template-columns: repeat(6, max-content); }
}
@media (min-width: 1024px) {
  .payments-list { grid-template-columns: repeat(10, max-content); }
}
.payments-list img { display: block; filter: grayscale(0.15) brightness(0.95); opacity: 0.95; }

.footer-meta { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 0.25rem; width: 100%; }
}

.footer-bottom { border-top: 1px solid rgba(148,163,184,0.2); color: #cbd5e1; }
.footer-bottom .container { padding: 0.5rem 0 1rem; }

/* Gifts */
.gifts { margin-top: 2rem; padding-top: 0.5rem; }
.gifts-media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0; }
@media (max-width: 640px) { .gifts-media { grid-template-columns: 1fr; } }
.gifts-cta { margin-top: 0.5rem; display: none; }

/* Gift text between images */
.gifts-media { align-items: center; }
.gifts-media::before {
  content: "Special seasonal gifts: unlock free spins and bonus cash on your first deposits.";
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0.5rem 0;
}

/* Utility */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }


