/* scorpiolovecompatibility.com — Scorpio crimson/violet theme */
:root {
  --bg: #0f0a16;
  --bg-soft: #171022;
  --bg-card: #1e1429;
  --border: #342042;
  --text: #f2eaf6;
  --text-dim: #b9a8c9;
  --fire: #e0315f;
  --ember: #c052e8;
  --gold: #e8a6ff;
  --grad: linear-gradient(100deg, #e0315f, #b04ae0 55%, #7c5cff);
  --great: #3ddc84;
  --good: #a3e635;
  --mixed: #e8b34b;
  --hard: #ff6b81;
  --radius: 16px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section.container, .container.prose { margin-top: 56px; }

h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.25; margin: 44px 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 10, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 1.02rem; }
.logo-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fdf7ff; font-size: 1.2rem; font-weight: 800;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.2rem; padding: 4px 12px; border-radius: 8px; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  background: var(--grad); color: #fdf7ff !important; font-weight: 700 !important;
  padding: 8px 18px; border-radius: 999px;
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 4px; }
  .nav-links.open { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 24px; text-align: center; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(176, 74, 224, 0.22), transparent); }
.hero .lede { max-width: 680px; margin: 18px auto 28px; }
.page-hero { padding: 48px 0 8px; background: radial-gradient(ellipse 80% 70% at 50% -20%, rgba(176, 74, 224, 0.18), transparent); }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold); border: 1px solid var(--border); background: var(--bg-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lede { font-size: 1.13rem; color: var(--text-dim); }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
}
.btn-primary { background: var(--grad); color: #fdf7ff; box-shadow: 0 6px 24px rgba(176, 74, 224, 0.40); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-secondary { border: 1.5px solid var(--fire); color: var(--text); }
.btn-secondary:hover { background: rgba(224, 49, 95, 0.14); color: var(--text); }

/* ---------- score widgets ---------- */
.hero-scores { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin: 28px 0 8px; }
.versus { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.versus-heart { font-size: 1.8rem; color: var(--fire); }
.sign-card {
  display: flex; flex-direction: column; gap: 2px; min-width: 190px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
}
.sign-symbol { font-size: 1.7rem; line-height: 1.2; color: var(--gold); }
.sign-meta { font-size: 0.8rem; color: var(--text-dim); }

.hero-score-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.score-ring {
  width: 130px; height: 130px; border-radius: 50%;
  background: conic-gradient(#e0315f 0%, #7c5cff calc(var(--pct) * 1%), #2a1d38 calc(var(--pct) * 1%));
  display: flex; align-items: center; justify-content: center;
}
.score-ring-inner {
  width: 102px; height: 102px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring-inner strong { font-size: 1.65rem; }
.score-ring-inner span { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

.tier-badge { font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tier-great { color: var(--great); background: rgba(61, 220, 132, 0.12); }
.tier-good  { color: var(--good);  background: rgba(163, 230, 53, 0.12); }
.tier-mixed { color: var(--mixed); background: rgba(255, 196, 107, 0.12); }
.tier-hard  { color: var(--hard);  background: rgba(255, 107, 129, 0.12); }

.score-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 20px 0 10px; }
.score-bar-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 5px; }
.score-bar-head strong { color: var(--text); }
.score-bar-track { height: 8px; border-radius: 99px; background: #2a1d38; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 99px; background: var(--grad); }
.score-note { font-size: 0.85rem; color: var(--text-dim); margin: 6px 0 26px; }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 42px; }
.tips { margin: 0 0 20px 22px; }
.tips li { margin-bottom: 10px; }

/* ---------- CTA box ---------- */
.cta-box {
  background: linear-gradient(135deg, rgba(224, 49, 95, 0.14), rgba(124, 92, 255, 0.10));
  border: 1px solid rgba(192, 82, 232, 0.35);
  border-radius: var(--radius); padding: 26px; margin: 36px 0; text-align: center;
}
.cta-box h3 { font-size: 1.25rem; }
.cta-box p { color: var(--text-dim); max-width: 560px; margin: 8px auto 18px; font-size: 0.97rem; }
.cta-meta { font-size: 0.82rem; color: var(--text-dim); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 56px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 0; color: var(--ember); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 4px; color: var(--text-dim); }

/* ---------- cards & grids ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 20px; }
.pick-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 10px; color: var(--text); transition: transform 0.15s, border-color 0.15s;
}
.pick-card:hover { transform: translateY(-3px); border-color: var(--fire); color: var(--text); }
.pct { font-weight: 700; font-size: 0.9rem; padding: 2px 10px; border-radius: 999px; }
.pct-mini { font-size: 0.78rem; opacity: 0.75; }

.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.match-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text); transition: transform 0.15s, border-color 0.15s;
}
.match-card:hover { transform: translateY(-3px); border-color: var(--ember); color: var(--text); }
.match-card p { font-size: 0.9rem; color: var(--text-dim); margin: 0; }
.match-card-head { display: flex; justify-content: space-between; align-items: center; }
.match-card-link { font-size: 0.88rem; font-weight: 600; color: var(--ember); margin-top: 6px; }
.match-card-hard:hover { border-color: var(--hard); }
.section-more { margin-top: 18px; color: var(--text-dim); }

.related { margin: 56px 0 64px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.related-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; color: var(--text); transition: border-color 0.15s;
}
.related-card:hover { border-color: var(--fire); color: var(--text); }
.related-all { justify-content: center; align-items: center; color: var(--ember); }

/* ---------- rank table ---------- */
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.rank-table th, .rank-table td { padding: 12px 14px; text-align: left; }
.rank-table thead { background: var(--bg-soft); }
.rank-table th { color: var(--text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rank-table tbody tr { border-top: 1px solid var(--border); }
.rank-table tbody tr:hover { background: rgba(176, 74, 224, 0.08); }
.rank-table a { color: var(--text); font-weight: 600; }
.rank-table a:hover { color: var(--ember); }

/* ---------- app section ---------- */
.app-section {
  margin-top: 72px; padding: 56px 0;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.app-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.app-features { list-style: none; margin: 18px 0 26px; }
.app-features li { padding: 7px 0; color: var(--text-dim); }
.app-shot { text-align: center; }
.app-shot img { border-radius: 28px; box-shadow: 0 20px 60px rgba(176, 74, 224, 0.28); }
@media (max-width: 800px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-shot { order: -1; }
  .app-shot img { max-width: 240px; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 18px; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; }
.footer-links.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim); }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
