/* ============================================================
   Safesite.info — Shared stylesheet (funnel design system)
   Mobile-first · <150 KB page budget · Conversion-focused
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #0a8754;
  --accent-hover: #06693f;
  --highlight-bg: #fffbe6;
  --highlight-border: #f5c518;
  --border: #e0e0e0;
  --radius: 12px;
  --max-w: 720px;
  /* Neutral “plate” behind operator logos — improves contrast vs pure white (#fff) */
  --logo-plate: #ebedf0;
  --logo-plate-border: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Category header ---- */

.category-header {
  padding: 20px 0 12px;
  text-align: center;
}

.trust-badge {
  display: inline-block;
  background: rgba(10, 135, 84, 0.08);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.category-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.category-header .category-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.category-header .category-intro--muted {
  font-size: 0.85rem;
}

/* ---- Operator Cards ---- */

.operators {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 0 28px;
}

.card--highlight {
  border: 2px solid var(--highlight-border);
  background: var(--highlight-bg);
  border-radius: var(--radius);
  padding: 3px;
}

.card--highlight .card {
  border: none;
  background: var(--surface);
}

.highlight-label {
  display: inline-block;
  background: var(--highlight-border);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 6px 0 6px 0;
  margin-bottom: 2px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.card__logo {
  display: block;
  width: 140px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  padding: 8px 14px;
  background: var(--logo-plate);
  border-radius: 8px;
  border: 1px solid var(--logo-plate-border);
  flex-shrink: 0;
}

.card__name {
  font-size: 1.125rem;
  font-weight: 700;
}

.card__bonus {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 480px;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  width: 100%;
  max-width: 320px;
}

.card__cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.card__cta:active {
  transform: translateY(0);
}

.card__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.card__compliance {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 12px;
  width: 100%;
}

.card__compliance a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(110, 110, 115, 0.3);
}

.card__compliance a:hover {
  color: var(--text);
}

.card__compliance span.sep {
  margin: 0 4px;
  opacity: 0.4;
}

/* ---- Responsible Gambling Section ---- */

.rg-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 20px;
  margin-bottom: 24px;
}

.rg-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.rg-section p,
.rg-section li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rg-section p {
  margin-bottom: 10px;
}

.rg-section ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.rg-section li {
  margin-bottom: 4px;
}

/* ---- Footer icons (funnel — same order as gamerouters) ---- */

.footer-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--border);
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.footer-icons a:hover {
  opacity: 1;
}

.footer-icons img,
.footer-icons svg {
  height: 28px;
  width: auto;
}

/* ---- Disclaimer (funnel) ---- */

.site-disclaimer {
  border-top: 1px solid var(--border);
  padding: 16px 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.site-disclaimer p {
  margin-bottom: 10px;
}

.site-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
  padding: 8px 0 28px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer .site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---- Desktop (≥600px) ---- */

@media (min-width: 600px) {
  .category-header h1 {
    font-size: 1.625rem;
  }

  .card__row {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 20px;
  }

  .card__logo {
    width: 120px;
    height: 56px;
  }

  .card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .card__cta {
    width: auto;
    flex-basis: auto;
    flex-shrink: 0;
    padding: 14px 32px;
    max-width: none;
  }

  .card__compliance {
    text-align: left;
  }
}
