/* AstroTheme — compatibility page (hub + pair report). Loaded after
   base.css + pages.css by compatibility.html. */

/* ── Hero + sign picker ──────────────────────────────────────────────────── */
.as-compat-hero { position: relative; overflow: hidden; text-align: center; padding: 40px 0 44px;
  background:
    radial-gradient(600px 260px at 15% 20%, rgba(255, 196, 206, .55), transparent 70%),
    radial-gradient(600px 280px at 88% 30%, rgba(206, 190, 245, .6), transparent 70%),
    linear-gradient(135deg, #fdeef0 0%, #fbeee2 50%, #efe8fb 100%);
  border-radius: 0 0 50% 50% / 0 0 24px 24px; }
.as-compat-hero h1 { font-family: var(--as-display); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 8px 0 6px; }
.as-amp { color: var(--as-rose-ink); font-style: italic; }
.as-compat-sub { margin: 0 auto 22px; max-width: 560px; color: var(--as-muted); }
.as-compat-find { font-size: 13px; margin-top: 12px; }

.as-compat-form { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px 18px;
  max-width: 640px; margin: 0 auto; padding: 20px 22px 22px; background: rgba(255, 255, 255, .85);
  border-radius: 20px; box-shadow: var(--as-shadow); backdrop-filter: blur(6px); }
.as-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.as-pick-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--as-gold); }
.as-pick-art { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 6px 18px rgba(120, 90, 40, .15); transition: transform .2s; }
.as-pick-art .as-zimg { width: 76px; height: 64px; }
.as-z-none { background: #f4efe7; }
.as-pick-q { font: 700 40px var(--as-display); color: #c9bba6; }
.as-pick select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--as-line); border-radius: 10px; background: #fff;
  font: 500 14px var(--as-sans); color: var(--as-ink); cursor: pointer; }
.as-pick select:focus { outline: none; border-color: var(--as-gold); }
.as-compat-heart { align-self: center; margin-bottom: 40px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(145deg, #f7788f, #d9435d); color: #fff; font-size: 20px;
  box-shadow: 0 6px 16px rgba(217, 67, 93, .35); animation: as-beat 1.6s ease-in-out infinite; }
.as-compat-go { grid-column: 1 / -1; width: 100%; padding: 15px; border-radius: 10px; }
@keyframes as-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }

/* Content column: single centred column unless a sidebar ad is configured. */
.as-compat-single { max-width: 860px; padding-top: 28px; padding-bottom: 48px; }

/* ── Match card ──────────────────────────────────────────────────────────── */
.as-match-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px 24px;
  background: #fff; border-radius: 22px; padding: 28px 28px 24px; box-shadow: var(--as-shadow);
  border-top: 5px solid var(--as-match-accent, var(--as-gold)); }
.as-match-card.as-tone-hi { --as-match-accent: #d9435d; }
.as-match-card.as-tone-mid { --as-match-accent: var(--as-gold); }
.as-match-card.as-tone-lo { --as-match-accent: #6c4fd1; }
.as-match-sign { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.as-match-art { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff, 0 8px 22px rgba(120, 90, 40, .15); }
.as-match-art .as-zimg { width: 96px; height: 82px; }
.as-match-sign strong { font: 700 22px var(--as-serif); color: var(--as-ink); }
.as-chip-el { font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 30px; }
.as-el-fire { background: #fde3dc; color: #c2410c; }   .as-el-earth { background: #e6f3df; color: #3f7a2b; }
.as-el-air { background: #e3effd; color: #2f5fb5; }    .as-el-water { background: #e0f3f7; color: #127c8a; }

.as-match-center { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 220px; }
.as-match-ring { --p: 0; position: relative; display: grid; place-content: center; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%),
              conic-gradient(var(--as-match-accent, var(--as-gold)) calc(var(--p) * 1%), #f2e9e0 0);
  animation: as-ring-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.as-match-pct { font: 700 46px/1 var(--as-display); color: var(--as-ink); }
.as-match-pct small { font-size: 24px; }
.as-match-word { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--as-muted); }
.as-verdict { margin-top: 12px; padding: 6px 16px; border-radius: 30px; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--as-match-accent, var(--as-gold)); }
.as-verdict-hook { font-size: 13px; color: var(--as-muted); margin: 8px 0 0; line-height: 1.45; }
@keyframes as-ring-in { from { transform: scale(.85) rotate(-20deg); opacity: 0; } }

.as-meters { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 8px;
  padding-top: 20px; border-top: 1px dashed var(--as-line); }
.as-meter-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--as-ink); margin-bottom: 6px; }
.as-meter-bar { height: 9px; border-radius: 9px; background: #f2ece4; overflow: hidden; }
.as-meter-bar span { display: block; height: 100%; width: var(--v); border-radius: 9px;
  background: linear-gradient(90deg, #f3b25a, var(--as-match-accent, var(--as-gold)));
  animation: as-fill 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes as-fill { from { width: 0; } }

/* ── Reading cards ───────────────────────────────────────────────────────── */
.as-compat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.as-compat-ad { grid-column: 1 / -1; }
.as-compat-card { position: relative; background: #fff; border-radius: 16px; padding: 22px 22px 20px 22px;
  border: 1px solid var(--as-line); border-top: 4px solid var(--as-tint); }
.as-compat-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px;
  background: var(--as-tint-bg); margin-bottom: 10px; }
.as-compat-card h2 { font-size: 19px; margin-bottom: 6px; }
.as-compat-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.as-tint-gold { --as-tint: #e0a63a; --as-tint-bg: #fdf1dc; }
.as-tint-rose { --as-tint: #e46a7e; --as-tint-bg: #fde8ec; }
.as-tint-sky  { --as-tint: #5b8fe0; --as-tint-bg: #e6f1fd; }
.as-tint-mint { --as-tint: #3fae6a; --as-tint-bg: #e8f6ea; }

/* ── Score pills (ranking + popular pairs) ───────────────────────────────── */
.as-score-pill { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 30px; white-space: nowrap; }
.as-score-pill.as-tone-hi { background: #fde3e8; color: #b4223f; }
.as-score-pill.as-tone-mid { background: #fdf0d8; color: #9a5d0a; }
.as-score-pill.as-tone-lo { background: #ece7fb; color: #5a3fc0; }

/* ── Best matches ranking ────────────────────────────────────────────────── */
.as-rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.as-rank { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: #fff; border: 1px solid var(--as-line);
  border-radius: 14px; text-decoration: none; transition: transform .15s, border-color .15s; }
.as-rank:hover { transform: translateY(-2px); border-color: var(--as-gold); }
.as-rank.is-current { border-color: var(--as-gold); box-shadow: 0 0 0 2px rgba(201, 138, 30, .25); }
.as-rank-art { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.as-rank-art .as-zimg { width: 34px; height: 30px; }
.as-rank-name { font-weight: 600; color: var(--as-ink); font-size: 14px; flex: 1; }

/* ── Hub: popular pairs ──────────────────────────────────────────────────── */
.as-pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.as-pair { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 16px; background: #fff;
  border: 1px solid var(--as-line); border-radius: 18px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.as-pair:hover { transform: translateY(-3px); box-shadow: var(--as-shadow); }
.as-pair-arts { display: flex; align-items: center; }
.as-pair-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; }
.as-pair-art .as-zimg { width: 48px; height: 42px; }
.as-pair-heart { position: relative; z-index: 1; margin: 0 -10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #d9435d; color: #fff; font-size: 12px; box-shadow: 0 0 0 3px #fff; }
.as-pair-name { font: 700 15px var(--as-serif); color: var(--as-ink); }
.as-compat-steps { margin-top: 32px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .as-rank-grid { grid-template-columns: repeat(2, 1fr); }
  .as-pair-grid { grid-template-columns: repeat(2, 1fr); }
  .as-match-card { grid-template-columns: 1fr 1fr; padding: 24px 18px 20px; }
  .as-match-center { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}
@media (max-width: 560px) {
  .as-compat-form { grid-template-columns: 1fr auto 1fr; padding: 16px 12px 18px; gap: 12px 8px; }
  .as-pick-art { width: 84px; height: 84px; }
  .as-pick-art .as-zimg { width: 58px; height: 50px; }
  .as-pick select { font-size: 13px; padding: 10px 6px; }
  .as-compat-heart { width: 36px; height: 36px; font-size: 16px; margin-bottom: 36px; }
  .as-match-art { width: 104px; height: 104px; }
  .as-match-art .as-zimg { width: 76px; height: 64px; }
  .as-meters, .as-compat-cards { grid-template-columns: 1fr; }
  .as-pair-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-compat-heart, .as-match-ring, .as-meter-bar span { animation: none; }
}
