/* ==========================================================================
   non-gamstop-listicle — design system
   Long-form editorial casino listicle: light-gray page, white content cards,
   dark navy header, magenta accent, sober informational register.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  /* palette */
  --page-bg: #f4f5f7;
  --surface: #ffffff;
  --header-bg: #0f172a;
  --copyright-bg: #111111;
  --accent: #be2edd;          /* primary — buttons, hovers, heading ticks */
  --accent-dark: #9b22b6;
  --accent-soft: #f8ecfb;
  --secondary: #ff2453;       /* author links, highlights */
  --footer-link: #ff4d6d;
  --tertiary: #d97559;        /* author-card outline button */
  --success: #2ecc71;
  --success-bright: #2edd6c;
  --danger: #e74c3c;
  --muted: #7f8c8d;
  --muted-2: #909090;
  --ink: #000000;
  --ink-heading: #0b1324;
  --body-text: #333a40;
  --border: #e3e3e3;

  /* type */
  --font-sans: "Poppins", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 16px;
  --lh-body: 24px;

  /* spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* shape */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card: 0 3px 12px rgba(0, 0, 0, 0.16);
  --content-width: 900px;
}

/* ---------- reset / base ---------- */

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

p {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 22px;
}

li {
  margin-bottom: var(--sp-2);
}

/* ---------- headings ---------- */

h1,
h2,
h3,
h4 {
  color: var(--ink-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--sp-4);
}

h1 {
  font-size: 32px;
  color: var(--ink);
}

h2 {
  font-size: 25px;
  padding-bottom: var(--sp-2);
  position: relative;
}

/* magenta underline tick — signature of the reference design */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 17px;
}

/* ---------- layout shell ---------- */

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* white content card */
.space-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

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

.site-header {
  background: var(--header-bg);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  text-align: center;
  position: relative;
}

.site-header .logo {
  display: inline-block;
  max-width: 200px;
  margin: 0 auto var(--sp-4);
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-header .logo .logo-accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.main-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-transform: none;
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.search-toggle {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.search-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}



/* ---------- title / meta strip ---------- */

.title-box {
  text-align: left;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.meta-strip .byline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.meta-strip .byline a {
  color: var(--secondary);
  font-weight: 600;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 36px;
}

.updated {
  color: var(--muted-2);
}

/* ---------- hero ---------- */

.hero .ph {
  height: 280px;
  border-radius: var(--radius);
}

/* ---------- placeholder blocks (wireframe) ---------- */

.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  background:
    repeating-linear-gradient(45deg, rgba(190, 46, 221, 0.07) 0 12px, transparent 12px 24px),
    #eef0f3;
  border: 1px dashed #c7cbd1;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  min-height: 80px;
  padding: var(--sp-3);
}

.ph.dark {
  background:
    repeating-linear-gradient(45deg, rgba(190, 46, 221, 0.18) 0 12px, transparent 12px 24px),
    var(--header-bg);
  color: #c4c9d4;
  border-color: #38415a;
}

.ph-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}

/* ---------- ranked casino cards ---------- */

.casino-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
  overflow: hidden;
}

.casino-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: #fafafc;
  border-bottom: 1px solid var(--border);
}

.rank-no {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
}

.casino-card__brand {
  flex: 0 0 120px;
}

.casino-card__brand .ph {
  min-height: 56px;
  padding: var(--sp-2);
}

.casino-card__title {
  flex: 1 1 auto;
}

.casino-card__title h3 {
  margin: 0 0 2px;
}

.stars {
  color: #f1c40f;
  font-size: 14px;
  letter-spacing: 2px;
}

.stars .score {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: normal;
  margin-left: var(--sp-2);
}

.casino-card__body {
  padding: var(--sp-4);
}

.kv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: 14px;
}

.kv-list li {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px dotted var(--border);
}

.kv-list .k {
  flex: 0 0 180px;
  color: var(--muted);
  font-weight: 600;
}

.kv-list .v {
  color: var(--body-text);
}

/* per-card strengths / weaknesses two columns */
.sw-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.sw-col {
  background: #fafafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
}

.sw-col h4 {
  font-size: 14px;
  margin-bottom: var(--sp-2);
}

.sw-col ul {
  margin: 0;
  padding-left: 18px;
}

.sw-col.pros h4 {
  color: var(--success);
}

.sw-col.cons h4 {
  color: var(--danger);
}

.sw-col.pros li::marker {
  color: var(--success-bright);
}

.sw-col.cons li::marker {
  color: var(--danger);
}

.casino-card__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.terms-note {
  font-size: 12px;
  color: var(--muted-2);
  flex: 1 1 240px;
}

/* ---------- buttons (subdued, informational) ---------- */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-author {
  background: transparent;
  border-color: var(--tertiary);
  color: var(--tertiary);
}

.btn-author:hover {
  background: rgba(217, 117, 89, 0.08);
  color: var(--tertiary);
  text-decoration: none;
}

/* ---------- data tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin-bottom: var(--sp-4);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: var(--sp-2);
}

th,
td {
  border: 1px solid var(--border);
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--header-bg);
  color: #ffffff;
  font-weight: 600;
  border-color: #2a3550;
}

tbody tr:nth-child(even) {
  background: #fafafc;
}

td .ok {
  color: var(--success);
  font-weight: 600;
}

td .no {
  color: var(--danger);
  font-weight: 600;
}

/* ---------- global pros / cons block ---------- */

.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.proscons .col {
  border-radius: var(--radius);
  padding: var(--sp-4);
  border: 1px solid var(--border);
}

.proscons .col.pros {
  border-top: 3px solid var(--success);
}

.proscons .col.cons {
  border-top: 3px solid var(--danger);
}

.proscons h3 {
  font-size: 16px;
  margin-bottom: var(--sp-3);
}

/* ---------- methodology criteria ---------- */

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.criterion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  font-size: 14px;
}

.criterion .weight {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: var(--sp-2);
}

.criterion h3 {
  font-size: 15px;
  margin-bottom: var(--sp-1);
}

.criterion p {
  margin: 0;
  color: var(--muted);
}

/* ---------- key-metrics strip (about / author pages) ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  text-align: center;
}

.stat .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: var(--sp-1);
}

.stat .stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- callouts ---------- */

.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
  margin-bottom: var(--sp-4);
}

.note.warn {
  border-left-color: var(--secondary);
  background: #fff0f3;
}

.note.safe {
  border-left-color: var(--success);
  background: #ecfaf1;
}

/* ---------- author / E-E-A-T card ---------- */

.author-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}

.author-card .avatar {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
}

.author-card .avatar .ph {
  width: 96px;
  height: 96px;
  min-height: 96px;
  border-radius: 50%;
  padding: var(--sp-1);
}

.author-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.author-card .role {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: var(--sp-2);
}

.author-card a {
  color: var(--secondary);
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: var(--sp-2);
}

.faq-item h3::before {
  content: "Q. ";
  color: var(--accent);
}

.faq-item p {
  margin: 0;
  color: var(--body-text);
  font-size: 15px;
}

/* ---------- resource list ---------- */

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
}

.resource-list li {
  display: flex;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: 1px dotted var(--border);
  font-size: 14px;
}

.resource-list .org {
  font-weight: 600;
  color: var(--ink-heading);
  flex: 0 0 220px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: var(--sp-7);
}

.rg-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-5) var(--sp-4);
}

.rg-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.rg-logo {
  width: 150px;
  max-height: 60px;
}

.rg-logo .ph {
  min-height: 48px;
  height: 48px;
  padding: var(--sp-1);
  font-size: 11px;
}

.rg-disclaimer {
  background: var(--surface);
  padding: 0 var(--sp-4) var(--sp-5);
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

.rg-disclaimer .wrap {
  max-width: 760px;
}

.copyright-bar {
  background: var(--copyright-bg);
  color: #bdbdbd;
  text-align: center;
  padding: var(--sp-4);
  font-size: 13px;
}

.copyright-bar a {
  color: var(--footer-link);
}

.copyright-bar a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}

/* ---------- utilities ---------- */

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 21px;
  }

  .space-box {
    padding: var(--sp-4);
  }

  .main-nav {
    gap: var(--sp-3) var(--sp-4);
  }

  .casino-card__head {
    flex-wrap: wrap;
  }

  .casino-card__brand {
    flex-basis: 96px;
  }

  .sw-cols,
  .proscons {
    grid-template-columns: 1fr;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kv-list li {
    flex-direction: column;
    gap: 0;
  }

  .kv-list .k {
    flex-basis: auto;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .resource-list li {
    flex-direction: column;
    gap: 2px;
  }

  /* In column direction the 220px flex-basis would become a 220px-tall
     label and create huge vertical gaps — reset it on small screens. */
  .resource-list .org {
    flex-basis: auto;
  }

  .hero .ph {
    height: 180px;
  }
}
