/*
  Light theme stylesheet for ICE Casino landing
  - Variables define color system and spacing
  - Mobile-first, responsive components
  - Comments explain structure and logic per block
*/

/* ========== CSS Variables (Light Theme) ========== */
:root {
  --color-bg: #ffffff;
  --color-surface: #f6f9ff;
  --color-muted: #eef2f8;
  --color-text: #101728;
  --color-text-muted: #475569;
  --color-primary: #0b5ed7;
  --color-primary-contrast: #ffffff;
  --color-accent: #00c2ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(16, 23, 40, 0.10);
  --container: 1200px;
  --gap: 1rem;
}

/* ========== Base / Reset ========== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ========== Layout Utilities ========== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.flow > * + * { margin-top: 1rem; }
.section { padding: 3rem 0; }
.section__intro { color: var(--color-text-muted); margin-bottom: 1rem; }

/* ========== Header ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-muted);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand img { height: 30px; width: auto; }

/* Primary navigation with mobile toggle */
.primary-nav { display: flex; align-items: center; gap: 1rem; }
.nav__list { display: none; list-style: none; padding: 0; margin: 0; gap: 1rem; }
.nav__list a { color: var(--color-text); font-weight: 600; }
.primary-nav .btn { padding: .5rem .9rem; font-size: .95rem; }

.nav-toggle { border: 1px solid var(--color-muted); background: var(--color-bg); border-radius: var(--radius-sm); padding: .5rem; display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--color-text); }

@media (min-width: 768px) {
  .nav__list { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile dropdown for primary navigation */
@media (max-width: 767px) {
  .primary-nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    padding: .75rem;
    border: 1px solid var(--color-muted);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 60;
  }
}

/* ========== Breadcrumbs ========== */
.breadcrumbs { border-top: 1px solid var(--color-muted); border-bottom: 1px solid var(--color-muted); background: var(--color-surface); }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0; margin: 0; padding-left: .5rem; }
.breadcrumbs__item { color: var(--color-text-muted); }
.breadcrumbs__item a { color: inherit; }
.breadcrumbs__item[aria-current="page"] { color: var(--color-text); font-weight: 700; }

/* ========== Hero Banner ========== */
.hero { position: relative; isolation: isolate; }
.hero img { width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1rem;
}
.hero__content {
  max-width: 900px; text-align: center; color: var(--color-primary-contrast);
  /* Fallback + modern color-mix for semi-transparent overlay */
  background: rgba(11, 94, 215, 0.75);
  background: color-mix(in oklab, var(--color-primary) 65%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero { overflow: hidden; }

/* Mobile: keep CTA within banner, reduce padding and radius so it doesn't overflow */
@media (max-width: 480px) {
  /* Make banner visually taller so CTA feels better proportioned */
  .hero img { aspect-ratio: 4 / 3; min-height: clamp(240px, 60vw, 420px); }
  /* Slightly smaller CTA card and tighter typography */
  .hero__content { padding: .8rem; border-radius: var(--radius-sm); max-width: 88%; background: rgba(11, 94, 215, 0.68); }
  .hero__content h1 { font-size: 1.06rem; line-height: 1.25; margin: 0 0 .4rem; }
  .lead { font-size: .9rem; }
  .btn--lg { padding: .65rem 1.05rem; font-size: .95rem; }
}
.lead { font-size: 1.1rem; opacity: .95; }
.hero__cta { margin-top: 1rem; }

/* ========== Buttons ========== */
.btn { display: inline-block; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 700; text-align: center; border: 1px solid transparent; }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--primary:hover { filter: brightness(0.95); text-decoration: none; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.05rem; }

/* ========== Slots Grid ========== */
.slots-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr); /* Mobile */
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.slot { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-muted); border: 1px solid var(--color-muted); }
.slot img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

@media (min-width: 640px) { .slots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .slots-grid { grid-template-columns: repeat(6, 1fr); } }

/* ========== Tables (Responsive) ========== */
.table-responsive { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--color-bg); border: 1px solid var(--color-muted); border-radius: var(--radius-sm); overflow: hidden; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid var(--color-muted); text-align: left; vertical-align: top; }
.table thead th { background: var(--color-surface); font-weight: 800; }
.table tbody tr:last-child td { border-bottom: 0; }

/* Stacked pattern for narrow screens: thead hidden, each cell shows its header via data-label */
@media (max-width: 768px) {
  .table--stack thead { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
  .table--stack tr { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--color-muted); padding: .5rem 0; }
  .table--stack td { display: grid; grid-template-columns: 45% 55%; align-items: start; gap: .5rem; border: 0; border-bottom: 0; }
  .table--stack td::before { content: attr(data-label); font-weight: 700; color: var(--color-text); }
}

/* ========== Payments Strip ========== */
.payments-strip { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1rem; opacity: .9; }
.payments-strip img { filter: grayscale(10%); }

/* ========== CTA Block ========== */
.cta-block {
  background: linear-gradient(180deg, var(--color-surface), transparent 40%);
  padding-top: 2rem;
}

/* ========== Footer ========== */
.site-footer { border-top: 1px solid var(--color-muted); background: var(--color-surface); margin-top: 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.footer__links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.footer__links a { color: var(--color-text); }

/* Mobile header requirement: only show Play now button */
@media (max-width: 767px) {
  .nav-toggle { display: none; }
  .nav__list { display: none !important; }
  .primary-nav .btn { margin-left: auto; padding: .45rem .75rem; font-size: .9rem; }
  .brand img { height: 26px; }
}

/* ========== Accessibility tweaks ========== */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }


