:root {
  --color-bg: #100b0e;
  --color-surface: #161019;
  --color-surface-2: #1e1523;
  --color-text: #f4f6f8;
  --color-muted: #b9c0ca;
  --color-primary: #c62828;
  --color-secondary: #ffb300;
  --color-cta: #28a745;
  --color-cta-hover: #23923d;
  --shadow-elev-1: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-elev-2: 0 10px 24px rgba(0, 0, 0, 0.35);
  --radius-md: 12px;
  --radius-lg: 16px;
  --container-gutter: 16px;
}

/* Box sizing for predictable layout */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Global styles */
html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

p > a {
  color: white
}

li > a {
  color: white;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: max(var(--container-gutter), env(safe-area-inset-left));
  padding-right: max(var(--container-gutter), env(safe-area-inset-right));
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header a {
  text-decoration: none;
  color: var(--color-text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 32px;
  background:
    radial-gradient(80% 120% at 90% 10%, rgba(198, 40, 40, 0.22), transparent 60%),
    radial-gradient(70% 100% at 10% 0%, rgba(255, 179, 0, 0.18), transparent 60%),
    linear-gradient(180deg, #0b0e13, #100b0e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px 0;
  font-weight: 800;
}

.hero p.sub {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 20px 0;
}

/* Filters (non-functional toggles for UX parity) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0 0;
}

.filter {
  display: inline-flex;
}

.filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter input:checked + label {
  background: rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.45);
}

/* Cards */
.list {
  padding: 24px 0 56px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev-1);
  border: 1px solid rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.card-inner {
  display: contents;
}

.card .left {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .middle {
  padding: 16px 0;
}

.card .right {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  width: 100%;
  max-width: 160px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.offer-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer {
  font-size: 18px;
  font-weight: 700;
}

.offer-sub {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-muted);
}

.usps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.usps li {
  list-style: none;
  color: var(--color-text);
  opacity: 0.92;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  flex-wrap: wrap;
}

.stars {
  color: #ffd54f;
}

.numeric-rating {
  font-weight: 800;
  font-size: 20px;
}

.votes {
  color: var(--color-muted);
  font-size: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--color-cta);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  min-width: 160px;
}

.cta:hover {
  background: var(--color-cta-hover);
}

/* Info section */
.info {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info .content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.info h2 {
  font-size: 24px;
  font-weight: 800;
}

.info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 20px;
}

.info p {
  color: var(--color-muted);
  line-height: 1.65;
}

/* Footer */
footer.site-footer {
  background: var(--color-bg);
  color: var(--color-text);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0;
}

.footer-logos img {
  filter: grayscale(1) brightness(1.2);
  opacity: 0.9;
  max-height: 36px;
  object-fit: contain;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0 24px;
  color: var(--color-muted);
  font-size: 14px;
}

/* Age Gate */
.age-gate {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.4);
}

.age-gate::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(6px) saturate(105%);
  -webkit-backdrop-filter: blur(6px) saturate(105%);
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

.age-gate .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
  z-index: 1;
}

.age-gate .actions {
  display: flex;
  gap: 10px;
}

.age-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111318;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.age-btn.primary {
  background: var(--color-cta);
  border-color: transparent;
}

/* Text-only layout (policy pages) */
.text-layout .hero {
  padding: 40px 0 16px;
}

.text-layout main.container {
  padding-top: 16px;
  padding-bottom: 16px;
}

.text-layout h1 {
  font-size: 28px;
}

.text-layout h2 {
  font-size: 20px;
  margin-top: 24px;
}

.text-layout p,
.text-layout li {
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --container-gutter: 18px; }
}

@media (max-width: 1024px) {
  :root { --container-gutter: 20px; }
  .header-inner {
    gap: 12px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 14px;
  }
  .info h2 {
    font-size: 22px;
  }
  .info h3 {
    font-size: 16px;
  }
  .footer-inner {
    justify-content: center;
    gap: 20px;
  }
  .footer-logos {
    justify-content: center;
  }
  .card {
    grid-template-columns: 160px 1fr 180px;
  }
  .cta {
    min-width: 140px;
  }
  .logo-link img {
    max-width: 160px;
  }
}

@media (max-width: 820px) {
  :root { --container-gutter: 22px; }
  .hero {
    padding: 56px 0 24px;
  }
  .header-inner {
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
  }
  .cards {
    gap: 16px;
  }
  .card {
    grid-template-columns: 1fr;
  }
  .card .left {
    padding-bottom: 0;
  }
  .card .middle,
  .card .right {
    padding: 8px var(--container-gutter) 16px;
  }
  .card .right {
    align-items: flex-start;
  }
  .footer-inner {
    justify-content: center;
  }
  .footer-logos {
    justify-content: center;
  }
  .cta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  :root { --container-gutter: 24px; }
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }
  .nav-links {
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero p.sub {
    font-size: 16px;
  }
  .offer {
    font-size: 16px;
  }
  .offer-sub {
    font-size: 13px;
  }
  .footer-nav {
    justify-content: center;
  }
  .footer-inner {
    align-items: center;
  }
  .footer-logos {
    justify-content: center;
  }
  .footer-legal {
    font-size: 13px;
  }
  .age-gate .inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Header centering overrides for tablet and mobile */
@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand {
    width: 100%;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand {
    width: 100%;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brand {
    width: 100%;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

/* Light card variant: ensure dark text for contrast on light backgrounds */
.card.is-light {
  color: #111;
}
.card.is-light .offer,
.card.is-light .rating,
.card.is-light .numeric-rating {
  color: #111;
}
.card.is-light .offer-sub,
.card.is-light .votes {
  color: #333;
}
.card.is-light .badge {
  background: rgba(0, 0, 0, 0.1);
  color: #111;
}
