/*
  New design system and class architecture
  - Color palette re-authored
  - Typography switched to Google Fonts (set in HTML head)
  - Class names renamed to unique BEM-ish scheme
  - Hover/animation patterns updated
  - Accessibility helpers added
*/

:root {
  /* Core colors */
  --bg-0: #0b1220;
  --bg-1: #0e1526;
  --bg-2: #101a33;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.1);

  --text-main: #e6f2ff;
  --text-muted: #a9bdd3;
  --text-soft: #92a6bd;

  --brand: #22d3ee; /* cyan */
  --brand-2: #14b8a6; /* teal */
  --brand-3: #a78bfa; /* violet */
  --danger: #ef4444;
  --warn: #f59e0b;
  --success: #10b981;

  --ring: rgba(34, 211, 238, 0.55);
  --ring-soft: rgba(167, 139, 250, 0.35);

  /* Gradients */
  --g-accent: linear-gradient(135deg, #22d3ee 0%, #14b8a6 100%);
  --g-accent-2: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --g-surface: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));

  /* Shadows */
  --shadow-1: 0 8px 28px rgba(0,0,0,0.35);
  --shadow-2: 0 12px 48px rgba(20, 184, 166, 0.25);
  --inner-glow: inset 0 0 0 1px rgba(255,255,255,0.06);

  /* Radii */
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 18px;
  --r-pill: 999px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
}

/* Reset essentials */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg-0);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }

/* Focus styles for a11y */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Visually hidden utility */
.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 container */
.wrap {
  max-width: 1240px;
  width: 100%;
  padding: 0 var(--sp-5);
  margin: 10px auto 0;
}

/* Generic section titles */
.block-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  color: var(--text-main);
  margin: 0 auto var(--sp-7);
}
.block-title span { background: var(--g-accent-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.block-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 48rem; margin: 0 auto var(--sp-8);
  font-size: 1.125rem;
}

/* Buttons */
.cta-btn {
  --_bg: var(--g-accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-3);
  color: #0b0f17; font-weight: 800; letter-spacing: 0.02em;
  background: var(--_bg);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 16px 60px rgba(34,211,238,.25); }
.cta-btn:active { transform: translateY(0); filter: saturate(1); }
.cta-btn--ghost {
  background: transparent; color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.16);
}

/* Top bar */
.site-bar { position: absolute; inset-inline: 0; top: 0; z-index: 40; height: 72px; display: grid; place-items: center; }
.site-bar__in { display: flex; align-items: center; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; max-width: 84px; }
.brand__img { width: 100%; height: auto; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* Hero/Masthead */
.masthead {
  position: relative; text-align: center; color: var(--text-main); padding-top: 100px;
  background: url(../img/intro.webp) right center/cover no-repeat;
  min-height: 100svh; display: grid; place-items: center; isolation: isolate;
}
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,18,32,0.55) 0%, rgba(16,26,51,0.9) 45%, var(--bg-0) 100%);
}
.masthead__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34,211,238,0.12);
  box-shadow: 0 0 40px rgba(34,211,238,0.25);
  margin-bottom: var(--sp-6);
  color: var(--text-main); font-weight: 700; font-size: 0.9rem;
}
.masthead__title {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 900;
  margin-bottom: var(--sp-5);
}
.masthead__title span { background: var(--g-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.masthead__lead {
  color: var(--text-muted); font-size: clamp(1rem, 2.1vw, 1.35rem);
  max-width: 52rem; margin: 0 auto var(--sp-7);
}
.masthead__bullets { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.masthead__bullet { display: inline-flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 600; }
.masthead__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px rgba(34,211,238,0.12); }
.masthead__dot--b { background: var(--brand-2); box-shadow: 0 0 0 6px rgba(20,184,166,0.12); }
.masthead__dot--c { background: var(--brand-3); box-shadow: 0 0 0 6px rgba(167,139,250,0.12); }

.masthead .gradient-floor { position: absolute; inset-inline: 0; bottom: 0; height: 120px; background: linear-gradient(to top, var(--bg-0), transparent); }

/* Offers (casino cards) */
.offers { padding: var(--sp-8) 0; }
.offers__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-6); }

.offer-card {
  grid-column: 2 / span 10;
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-6);
  padding: var(--sp-6);
  border-radius: var(--r-4);
  background: var(--g-surface);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-1), var(--inner-glow);
  position: relative; overflow: hidden;
}
.offer-card::after { /* diagonal glow */
  content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(167,139,250,0.28), transparent);
  filter: blur(14px);
}
.offer-card--featured { border-color: rgba(34,211,238,0.5); box-shadow: var(--shadow-1), 0 0 0 1px rgba(34,211,238,0.2) inset; }
.offer-card__ribbon {
  position: absolute; left: 0px; top: 0px; padding: 6px 12px; border-bottom-right-radius: 1.125rem;
  font-size: .85rem; font-weight: 800; color: #0a111c; background: var(--g-accent-2); box-shadow: var(--shadow-2);
}
.offer-card__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-4); }
.offer-card__logo { width: 140px; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.offer-card__meta { display: grid; gap: 6px; }
.offer-card__stars { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); }
.offer-card__score { margin-left: 10px; font-weight: 800; color: var(--success); }
.offer-card__votes { color: var(--text-soft); font-size: .95rem; }

.offer-card__perk {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.28);
  padding: 12px 14px; border-radius: var(--r-3); margin-top: 6px;
}
.offer-card__perk-title { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.offer-card__perk-text { color: #8feaff; font-weight: 700; }

.offer-card__list { margin-top: var(--sp-4); display: grid; gap: 10px; color: var(--text-soft); }
.offer-card__item { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.offer-card__item svg { width: 20px; height: 20px; color: var(--brand-3); }
.offer-card__actions { display: grid; align-content: start; gap: var(--sp-4); }
.offer-card__cta { min-width: 240px; text-align: center; }

@media (max-width: 1199.98px) {
  .offers__grid { grid-template-columns: repeat(6, 1fr); }
  .offer-card { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .offer-card__cta { min-width: 100%; }
  .consent-bar__actions {display: flex;flex-direction: column;}
}
@media (max-width: 480.98px) {
  .offer-card { padding: var(--sp-5); }
}

/* Regulation block */
.regulation { padding: var(--sp-8) 0; }
.regulation__panel {
  max-width: 72rem; margin: 0 auto; padding: var(--sp-8);
  border-radius: var(--r-4); border: 1px solid rgba(255,255,255,0.12);
  background: var(--g-surface);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-7);
}
.regulation__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.45); margin-bottom: var(--sp-4); }
.regulation__badge svg { width: 16px; height: 16px; color: var(--brand-3); }
.regulation__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: var(--sp-4); }
.regulation__text { color: var(--text-muted); font-size: 1.05rem; }
.regulation__list { display: grid; gap: var(--sp-4); }
.regulation__item { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); align-items: start; }
.regulation__icon { width: 56px; height: 56px; border-radius: var(--r-3); display: grid; place-items: center; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.28); }
.regulation__icon svg { color: var(--brand-3); width: 24px; height: 24px; }
.regulation__item h3 { margin: 0 0 4px; }
.regulation__item p { margin: 0; color: var(--text-soft); font-size: .97rem; }

@media (max-width: 768.98px) {
  .regulation__panel { grid-template-columns: 1fr; padding: var(--sp-6); gap: var(--sp-6); }
}

/* Methodology */
.methodology { padding: var(--sp-8) 0; text-align: center; }
.methodology__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(34,211,238,0.15); border: 1px solid rgba(34,211,238,0.45); margin-bottom: var(--sp-4); }
.methodology__badge svg { width: 16px; height: 16px; color: var(--brand); }
.methodology__grid { max-width: 72rem; margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); text-align: left; }
.methodology__card { background: var(--g-surface); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-3); padding: var(--sp-6); box-shadow: var(--inner-glow); transition: transform .2s ease, box-shadow .2s ease; }
.methodology__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.methodology__icon { width: 60px; height: 60px; border-radius: var(--r-3); display:grid; place-items:center; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.28); margin-bottom: var(--sp-4); }
.methodology__icon svg { color: var(--brand-3); }
.methodology__subtitle { color: var(--text-muted); font-size: 1.125rem; margin-bottom: var(--sp-7); }
.methodology__note { max-width: 72rem; margin: 0 auto; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.32); border-radius: var(--r-3); padding: var(--sp-5); color: var(--text-muted); }
.methodology__note b { color: #8feaff; }

@media (max-width: 992.98px) { .methodology__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768.98px) { .methodology__grid { grid-template-columns: 1fr; } }

/* Catalogue (popular games) */
.catalogue { padding: var(--sp-8) 0; background: linear-gradient(to bottom, var(--bg-0), rgba(255,255,255,0.04)); }
.catalogue__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-7); }
.catalogue__item { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); align-items: center; background: var(--bg-1); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-3); padding: var(--sp-5); }
.catalogue__media { width: 72px; height: 72px; border-radius: var(--r-3); display:grid; place-items:center; background: var(--g-surface); border: 1px solid rgba(255,255,255,0.14); }
.catalogue__media svg { width: 32px; height: 32px; color: var(--brand); }
.catalogue__item h3 { margin: 0 0 6px; font-size: 1.25rem; }
.catalogue__item p { margin: 0; color: var(--text-soft); }
.catalogue__note { text-align: center; color: var(--text-muted); }

@media (max-width: 992.98px) { .catalogue__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768.98px) { .catalogue__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--bg-1); color: var(--text-muted); padding: var(--sp-8) 0; }
.site-footer__links { display: flex; gap: var(--sp-5); flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: var(--sp-6); }
.site-footer a { color: #8feaff; }
.site-footer a:hover { color: #d5baff; }
.site-footer__badges { display: flex; align-items: center; justify-content: center; gap: var(--sp-6); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.site-footer__badge { padding: 8px; max-width: 160px; }
.site-footer__badge img { max-height: 52px; width: auto; }
.site-footer__advice { display: grid; grid-template-columns: 32px 1fr; gap: var(--sp-4); align-items: start; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.28); color: var(--text-muted); border-radius: var(--r-3); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.site-footer__advice svg { color: var(--danger); }
.site-footer__advice h3 { margin-top: 0; }
.site-footer__copy { text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--sp-6); display: grid; gap: 8px; }
.site-footer__identity { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; color: var(--text-main); }
.site-footer__identity svg { color: var(--brand-3); width: 20px; height: 20px; }

/* Cookie/Consent bar */
#cookies-banner.consent-bar, .consent-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1000; width: 100%; display: none; align-items: center; justify-content: center; gap: var(--sp-5);
  background: var(--bg-2); color: var(--text-main); padding: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.consent-bar__actions { display: inline-flex; gap: var(--sp-4); }
#accept-cookies, #reject-cookies {
  min-width: 100px; border-radius: var(--r-3); padding: 10px 14px; border: none; cursor: pointer; font-weight: 800;
  transition: transform .15s ease, filter .2s ease;
}
#accept-cookies { background: var(--g-accent); color: #08121d; }
#reject-cookies { background: rgba(239,68,68,0.16); color: #ffd7d7; border: 1px solid rgba(239,68,68,0.45); }
#accept-cookies:hover, #reject-cookies:hover { transform: translateY(-1px); }

/* Legal/Docs page */
.doc-page { padding: calc(72px + 40px) 0 48px; background: linear-gradient(to bottom, var(--bg-0), rgba(255,255,255,0.04)); color: var(--text-muted); }
.doc-page__title { text-align: center; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--text-main); margin-bottom: var(--sp-6); background: var(--g-accent-2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-page__panel { background: var(--g-surface); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-3); padding: var(--sp-7); }
.doc-page__panel h3 { color: var(--text-main); margin: 0 0 10px; }
.doc-page__panel p { margin: 0 0 14px; }
.doc-page__panel ul { padding-left: 18px; margin: 0 0 14px; }
.doc-page__panel li { list-style: disc; }
.doc-page__panel li::marker { color: var(--brand); }
.doc-page a { color: #8feaff; }
.doc-page a:hover { color: #d5baff; }

/* Old classes minimal support (only for interim during migration) */
/* Keep hero gradient footer height */
.grad { height: 8rem; z-index: 10; position: absolute; bottom: 0; right: 0; left: 0; background: linear-gradient(to top, var(--bg-0), transparent); }
