/* ===== SpinBetter Affiliate Review — styles ===== */

:root {
  --sb-bg: #0a1f1c;
  --sb-bg-2: #0f2a26;
  --sb-surface: #143530;
  --sb-surface-2: #1b4540;
  --sb-border: #245d55;
  --sb-text: #e8f4f1;
  --sb-text-muted: #9fb8b3;
  --sb-primary: #0d3d36;
  --sb-accent: #a855f7;
  --sb-accent-2: #7c3aed;
  --sb-lime: #c4f542;
  --sb-lime-2: #a8d824;
  --sb-danger: #ef4444;
  --sb-success: #22c55e;
  --sb-radius: 10px;
  --sb-radius-lg: 16px;
  --sb-shadow: 0 4px 20px rgba(0,0,0,0.25);
  --sb-shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --sb-max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--sb-bg);
  color: var(--sb-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sb-lime); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sb-lime-2); text-decoration: underline; }

/* ===== Header ===== */
.sb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sb-border);
  transition: box-shadow 0.3s;
}
.sb-header.scrolled { box-shadow: var(--sb-shadow); }
.sb-header-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--sb-text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.sb-logo:hover { text-decoration: none; color: var(--sb-lime); }
.sb-logo-mark {
  background: var(--sb-lime);
  color: var(--sb-bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
}
.sb-nav { display: flex; gap: 28px; align-items: center; }
.sb-nav a {
  color: var(--sb-text);
  font-weight: 500;
  font-size: 15px;
}
.sb-nav a:hover { color: var(--sb-lime); text-decoration: none; }
.sb-nav-cta {
  background: var(--sb-accent);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--sb-radius);
  font-weight: 600;
}
.sb-nav-cta:hover { background: var(--sb-accent-2); }
.sb-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.sb-burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--sb-text);
  border-radius: 2px;
  transition: 0.3s;
}
.sb-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.sb-burger.open span:nth-child(2) { opacity: 0; }
.sb-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Main ===== */
.sb-main { max-width: var(--sb-max); margin: 0 auto; padding: 40px 20px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; }
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin: 48px 0 18px; color: var(--sb-text); }
h3 { font-size: 1.3rem; margin: 32px 0 14px; color: var(--sb-lime); }
h4 { font-size: 1.1rem; margin: 20px 0 10px; }

p { margin-bottom: 16px; }

ul, ol { padding-left: 22px; margin-bottom: 18px; }
li { margin-bottom: 8px; }

/* ===== Hero ===== */
.sb-hero {
  background: linear-gradient(135deg, var(--sb-primary) 0%, var(--sb-surface-2) 100%);
  border-radius: var(--sb-radius-lg);
  padding: 48px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.sb-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.sb-hero h1 { position: relative; }
.sb-hero-subtitle {
  font-size: 1.15rem;
  color: var(--sb-text-muted);
  max-width: 720px;
  position: relative;
}

/* ===== Quick-verdict box ===== */
.sb-verdict {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--sb-shadow);
}
.sb-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sb-border);
}
.sb-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sb-rating-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sb-lime);
}
.sb-rating-max { color: var(--sb-text-muted); font-size: 1.2rem; }
.sb-stars { color: var(--sb-lime); font-size: 1.2rem; letter-spacing: 2px; }
.sb-verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sb-pros h4, .sb-cons h4 { margin-top: 0; }
.sb-pros h4 { color: var(--sb-success); }
.sb-cons h4 { color: var(--sb-danger); }
.sb-pros ul, .sb-cons ul { list-style: none; padding: 0; }
.sb-pros li, .sb-cons li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
.sb-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sb-success);
  font-weight: 700;
}
.sb-cons li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--sb-danger);
  font-weight: 700;
}

/* ===== CTA ===== */
.sb-cta {
  background: linear-gradient(135deg, var(--sb-accent) 0%, var(--sb-accent-2) 100%);
  border-radius: var(--sb-radius-lg);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
  box-shadow: var(--sb-shadow-lg);
}
.sb-cta h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
}
.sb-cta p { color: rgba(255,255,255,0.92); margin-bottom: 20px; }
.sb-btn {
  display: inline-block;
  background: var(--sb-lime);
  color: var(--sb-bg) !important;
  padding: 14px 34px;
  border-radius: var(--sb-radius);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}
.sb-btn:hover {
  background: var(--sb-lime-2);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--sb-bg) !important;
}

/* ===== Promo code ===== */
.sb-promo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  border: 2px dashed var(--sb-lime);
  border-radius: var(--sb-radius);
  padding: 8px 8px 8px 18px;
  margin: 8px 0;
}
.sb-promo-label { color: var(--sb-text-muted); font-size: 0.9rem; }
.sb-promo-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--sb-lime);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.sb-copy-btn {
  background: var(--sb-lime);
  color: var(--sb-bg);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.sb-copy-btn:hover { background: var(--sb-lime-2); }
.sb-copy-btn.copied { background: var(--sb-success); color: white; }

.sb-promo-callout {
  background: linear-gradient(135deg, rgba(168,85,247,0.15) 0%, rgba(124,58,237,0.15) 100%);
  border: 1px solid var(--sb-accent);
  border-radius: var(--sb-radius-lg);
  padding: 24px;
  margin: 28px 0;
}
.sb-promo-callout h4 { margin-top: 0; color: var(--sb-lime); }

/* ===== Tables ===== */
.sb-table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sb-surface);
  border-radius: var(--sb-radius);
  overflow: hidden;
  box-shadow: var(--sb-shadow);
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--sb-border);
}
th {
  background: var(--sb-surface-2);
  font-weight: 600;
  color: var(--sb-lime);
  font-size: 0.95rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sb-surface-2); }

/* ===== Images ===== */
figure { margin: 28px 0; text-align: center; }
.sb-img-desktop {
  width: 90%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--sb-shadow-lg);
  border: 1px solid var(--sb-border);
}
.sb-img-mobile {
  width: 50%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--sb-shadow-lg);
  border: 1px solid var(--sb-border);
}
figcaption {
  color: var(--sb-text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  font-style: italic;
}

/* ===== Steps ===== */
.sb-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.sb-steps li {
  counter-increment: step;
  padding: 20px 20px 20px 68px;
  background: var(--sb-surface);
  border-radius: var(--sb-radius);
  margin-bottom: 14px;
  position: relative;
  border-left: 4px solid var(--sb-lime);
}
.sb-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--sb-lime);
  color: var(--sb-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ===== FAQ ===== */
.sb-faq { margin: 32px 0; }
.sb-faq-item {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.sb-faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.sb-faq-item summary::-webkit-details-marker { display: none; }
.sb-faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--sb-lime);
  font-weight: 400;
  transition: transform 0.2s;
}
.sb-faq-item[open] summary::after { content: '−'; }
.sb-faq-item summary:hover { background: var(--sb-surface-2); }
.sb-faq-content { padding: 0 24px 20px; color: var(--sb-text-muted); }
.sb-faq-content p { margin-bottom: 12px; }
.sb-faq-content p:last-child { margin-bottom: 0; }

/* ===== Breadcrumbs ===== */
.sb-breadcrumbs {
  font-size: 0.9rem;
  color: var(--sb-text-muted);
  margin-bottom: 24px;
}
.sb-breadcrumbs a { color: var(--sb-text-muted); }
.sb-breadcrumbs span { margin: 0 8px; }

/* ===== Category cards ===== */
.sb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.sb-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius-lg);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.sb-card:hover { transform: translateY(-4px); border-color: var(--sb-lime); }
.sb-card h3 { margin-top: 0; }
.sb-card p { color: var(--sb-text-muted); margin-bottom: 12px; }

/* ===== Info box ===== */
.sb-info {
  background: rgba(168,85,247,0.08);
  border-left: 4px solid var(--sb-accent);
  border-radius: var(--sb-radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.sb-info strong { color: var(--sb-lime); }

.sb-warning {
  background: rgba(239,68,68,0.08);
  border-left: 4px solid var(--sb-danger);
  border-radius: var(--sb-radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.sb-footer {
  background: var(--sb-bg-2);
  border-top: 1px solid var(--sb-border);
  margin-top: 60px;
  padding: 40px 20px 24px;
}
.sb-footer-inner {
  max-width: var(--sb-max);
  margin: 0 auto;
}
.sb-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.sb-footer-cols h4 { color: var(--sb-lime); margin-bottom: 14px; margin-top: 0; font-size: 1rem; }
.sb-footer-cols ul { list-style: none; padding: 0; }
.sb-footer-cols li { margin-bottom: 8px; }
.sb-footer-cols a { color: var(--sb-text-muted); font-size: 0.92rem; }
.sb-footer-cols a:hover { color: var(--sb-lime); }
.sb-footer-bottom {
  border-top: 1px solid var(--sb-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.sb-footer-bottom p { color: var(--sb-text-muted); font-size: 0.85rem; margin: 0; }
.sb-age-badge {
  background: var(--sb-danger);
  color: white;
  padding: 4px 12px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 30px;
  text-align: center;
}
.sb-disclaimer {
  color: var(--sb-text-muted);
  font-size: 0.85rem;
  margin-top: 14px;
  line-height: 1.5;
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; margin: 36px 0 14px; }
  h3 { font-size: 1.15rem; }
  .sb-hero { padding: 32px 24px; }
  .sb-verdict-grid { grid-template-columns: 1fr; gap: 16px; }
  .sb-footer-cols { grid-template-columns: 1fr; gap: 28px; }

  .sb-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--sb-bg-2);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--sb-border);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }
  .sb-nav.open { transform: translateY(0); }
  .sb-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--sb-border);
    width: 100%;
  }
  .sb-nav a:last-child { border-bottom: none; }
  .sb-burger { display: flex; }

  .sb-img-desktop, .sb-img-mobile { width: 100%; max-width: 100%; }
  .sb-cta { padding: 28px 20px; }
  .sb-main { padding: 24px 16px; }
  th, td { padding: 10px 12px; font-size: 0.9rem; }
}
