/* Francecasinoguide — New Design System (NX) */
/* Complete CSS rewrite with new class names, accessibility, performance-minded styles */

/* 1) Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html:focus-within {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

/* 2) Design Tokens */
:root {
  /* Surfaces */
  --nx-bg: #090d16; /* deep night */
  --nx-bg-2: #0b1120; /* gradient end */
  --nx-surface: #0e1424; /* card base */
  --nx-panel: #121a2a; /* elevated */

  /* Brand (unique palette: violet → cyan) */
  --nx-primary: #ff3ef4; /* electric magenta */
  --nx-primary-2: #b5ff2a; /* acid green */
  --nx-accent: #ffe062; /* cyber yellow */
  --nx-success: #53ffa8; /* neon mint */
  --nx-danger: #ff6b6b; /* vivid coral */

  /* Text */
  --nx-text: #e6eef8;
  --nx-text-dim: #a9b3c9;

  /* Decor */
  --nx-border: rgba(255, 255, 255, 0.08);
  --nx-border-strong: rgba(255, 255, 255, 0.16);
  --nx-star-fill: #ffe062; /* stars filled color */
  --nx-star-base: #1b2434; /* stars base color */
  --nx-neon: rgba(255, 62, 244, 0.45); /* neon magenta border */
  --nx-radius-xl: 18px;
  --nx-radius-lg: 14px;
  --nx-radius-md: 10px;
  --nx-radius-sm: 8px;

  /* Layout */
  --nx-container: 1180px;
  --nx-gutter: 18px;

  /* Effects */
  --nx-shadow-1: 0 10px 24px rgba(4, 7, 16, 0.45);
  --nx-shadow-2: 0 18px 40px rgba(6, 10, 22, 0.55);
  --nx-focus: 0 0 0 3px rgba(0, 229, 255, 0.5);
}

/* 3) Base */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--nx-text);
  background: radial-gradient(
      1200px 800px at -10% -10%,
      rgba(255, 62, 244, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 110% 0%,
      rgba(181, 255, 42, 0.08),
      transparent 55%
    ),
    radial-gradient(
      800px 600px at 50% 120%,
      rgba(255, 224, 98, 0.06),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0f1f 0%, #0a1020 30%, #0b1120 70%, #0c1224 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--nx-focus);
  border-radius: 8px;
}

/* 4) Accessibility helpers */
.nx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}
.nx-skipLink {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #0b1220;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--nx-shadow-1);
  transition: top 0.2s ease;
  z-index: 1000;
}
.nx-skipLink:focus {
  top: 8px;
}

/* 5) Layout */
.nx-shell {
  width: 100%;
  max-width: var(--nx-container);
  margin: 0 auto;
  padding-inline: var(--nx-gutter);
}

/* 6) Typography */
.nx-title,
.nx-sectionTitle,
.nx-hero_title {
  font-family: "Sora", system-ui;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nx-text {
  color: var(--nx-text-dim);
}

/* 7) Hero */
.nx-hero {
  padding: 28px 0 10px;
}
.nx-hero_wrap {
  display: grid;
  gap: 16px;
}
.nx-hero_title {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
}
.nx-hero_lead {
  color: var(--nx-text-dim);
  font-size: clamp(15px, 1.7vw, 18px);
}

/* 8) Badges */
.nx-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: radial-gradient(
      80% 120% at 0% 0%,
      rgba(255, 62, 244, 0.12),
      transparent 40%
    ),
    radial-gradient(
      90% 100% at 100% 100%,
      rgba(181, 255, 42, 0.08),
      transparent 45%
    ),
    linear-gradient(180deg, #0e1426 0%, #0b1120 100%);
  border: 1px solid var(--nx-neon);
  outline: 1px solid rgba(255, 62, 244, 0.18);
  outline-offset: -3px;
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 4px 14px rgba(255, 62, 244, 0.16), 0 1px 3px rgba(0, 0, 0, 0.35);
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nx-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
      50% 50% at 50% 50%,
      #ff3ef4 0%,
      rgba(255, 62, 244, 0) 70%
    ),
    #ff3ef4;
  box-shadow: 0 0 12px rgba(255, 62, 244, 0.6),
    0 0 24px rgba(181, 255, 42, 0.25);
  flex: 0 0 10px;
}
.nx-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 62, 244, 0.24), 0 2px 8px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 62, 244, 0.65);
}

/* 9) Cards */
.nx-list {
  padding: 8px 0 16px;
}
.nx-cards {
  display: grid;
  gap: 12px;
}
.nx-card {
  display: grid;
  grid-template-columns: 44px 2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  background: radial-gradient(
      120% 140% at 30% 0%,
      rgba(255, 62, 244, 0.06),
      transparent 40%
    ),
    radial-gradient(
      120% 140% at 100% 100%,
      rgba(181, 255, 42, 0.04),
      transparent 45%
    ),
    linear-gradient(180deg, #0f1526 0%, #0c1222 100%);
  border: 1px solid var(--nx-neon);
  outline: 2px solid rgba(255, 62, 244, 0.18);
  outline-offset: -4px;
  border-radius: var(--nx-radius-lg);
  padding: 12px;
  box-shadow: var(--nx-shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.nx-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nx-shadow-2), 0 0 0 2px rgba(0, 229, 255, 0.15);
  border-color: var(--nx-border-strong);
}

.nx-order {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: "Sora";
  font-size: 14px;
  color: #0b1220;
  border-radius: 12px;
  border: 1px solid rgba(255, 62, 244, 0.55);
  background: radial-gradient(
      120% 100% at 50% 50%,
      #ffe062 0%,
      #ffd54a 30%,
      rgba(255, 224, 98, 0.55) 60%,
      rgba(255, 224, 98, 0) 70%
    ),
    radial-gradient(
      120% 120% at 20% 20%,
      rgba(255, 62, 244, 0.35),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 80% 80%,
      rgba(181, 255, 42, 0.35),
      transparent 60%
    ),
    linear-gradient(180deg, #121a2a 0%, #0f1629 100%);
  box-shadow: 0 0 0 2px rgba(255, 62, 244, 0.18),
    0 8px 22px rgba(255, 62, 244, 0.22), 0 6px 18px rgba(181, 255, 42, 0.14),
    inset 0 0 14px rgba(255, 224, 98, 0.28);
}

.nx-brandRow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: center;
}
.nx-logo {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-md);
  display: grid;
  place-items: center;
  padding: 6px;
}
.nx-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.nx-meta {
  display: grid;
  gap: 6px;
  align-content: center;
}
.nx-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nx-stars {
  --value: 100;
  --size: 18px;
  display: inline-grid;
  line-height: 1;
  grid-auto-flow: row;
}
.nx-stars-base,
.nx-stars-fill {
  grid-area: 1 / 1;
  font-family: "Sora", system-ui;
  font-size: var(--size);
  letter-spacing: 2px;
}
.nx-stars-base {
  color: var(--nx-star-base);
  opacity: 0.35;
}
.nx-stars-fill {
  color: var(--nx-star-fill);
  width: calc(var(--value) * 1%);
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(255, 224, 98, 0.25);
}
.nx-score {
  font-weight: 800;
  color: var(--nx-success);
  font-size: 14px;
}
.nx-line {
  color: var(--nx-text-dim);
  font-size: 13px;
  margin: 0;
}

.nx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nx-tag {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  color: var(--nx-text-dim);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nx-tag:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: var(--nx-border-strong);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.nx-bonusBlock {
  margin: 4px 0 2px;
}
.nx-bonus {
  font-size: 13px;
  color: var(--nx-text);
  background: linear-gradient(
    135deg,
    rgba(255, 62, 244, 0.12) 0%,
    rgba(181, 255, 42, 0.1) 55%,
    rgba(255, 224, 98, 0.1) 100%
  );
  border: 1px solid var(--nx-neon);
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 12px rgba(255, 62, 244, 0.08);
}

.nx-cta {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.nx-btn {
  appearance: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 10px 14px;
  font-weight: 800;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #0b1220;
  background: linear-gradient(135deg, var(--nx-primary-2), var(--nx-primary));
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  font-size: 14px;
}
.nx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.32),
    0 0 0 3px rgba(0, 229, 255, 0.18);
  filter: brightness(1.05);
}

.nx-pay {
  display: flex;
  gap: 6px;
  opacity: 0.95;
}
.nx-pay img {
  width: 44px;
  height: 25px;
  object-fit: contain;
}

/* 10) Sections (content) */
.nx-section {
  padding: 18px 0;
}
.nx-sectionsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.nx-sectionCard {
  background: var(--nx-surface);
  border: 1px solid var(--nx-neon);
  border-radius: var(--nx-radius-lg);
  padding: 16px;
  box-shadow: var(--nx-shadow-1);
}
.nx-title {
  font-size: clamp(22px, 3vw, 32px);
  margin: 10px 0 8px;
}
.nx-sectionTitle {
  font-size: clamp(22px, 3vw, 32px);
  margin: 10px 0 8px;
}
.nx-text {
  margin: 6px 0;
}
.nx-listing {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 8px;
}
.nx-listing li {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 10px 12px;
}

/* 11) FAQ */
.nx-faq {
  display: grid;
  gap: 10px;
}
.nx-faq details {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 10px 12px;
}
.nx-faq summary {
  cursor: pointer;
  font-weight: 700;
}

/* 12) Footer */
.nx-footer {
  border-top: 1px solid var(--nx-border);
  background: #0a0f1a;
  padding: 24px 0;
  color: var(--nx-text-dim);
}
.nx-footer__grid {
  display: grid;
  gap: 16px;
}
.nx-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nx-logoBadge {
  width: 100px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nx-border);
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 10px rgba(4, 7, 16, 0.25);
}
.nx-logoBadge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(4, 7, 16, 0.35);
}
.nx-logoBadge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nx-footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nx-footerLinks a {
  padding: 6px 10px;
  border: 1px solid var(--nx-border);
  border-radius: 10px;
}

/* 13) Responsive */
@media (max-width: 920px) {
  .nx-brandRow {
    grid-template-columns: 1fr;
  }
  .nx-card {
    grid-template-columns: 1fr;
  }
  .nx-cta {
    grid-column: 1 / -1;
    justify-items: stretch;
  }
  .nx-pill {
    font-size: 0.9rem;
  }
  .nx-pill_icon {
    width: 18px;
    height: 18px;
  }
  .nx-sectionsGrid {
    grid-template-columns: 1fr;
  }
  .nx-pill {
    font-size: 0.6rem;
  }
}

/* 14) Parallax background */
.nx-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      180deg,
      rgba(6, 10, 20, 0.65),
      rgba(6, 10, 20, 0.65)
    ),
    url("../img/bg-new.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-attachment: fixed;
  filter: contrast(1.05) saturate(1.05);
  pointer-events: none;
}

/* 14) Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
