/* =======================================================
   Encounters Dating — Components
   Reusable UI parts. Used across multiple pages.
   ======================================================= */


/* ============================================
   TOPBAR
   Logo on left, account links on right.
   ============================================ */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--plum-deep);
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--fs-md);
}
.topbar-right a { color: var(--text-mid); }
.topbar-right a:hover {
  color: var(--plum);
  text-decoration: none;
}
.topbar-right .subscribe-link {
  color: var(--plum);
  font-weight: 500;
}


/* ============================================
   NAV
   Horizontal nav items with rose underline on active.
   ============================================ */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  gap: var(--space-1);
}
.nav-item {
  padding: var(--space-4) 22px;
  font-size: var(--fs-md);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--t-base), border-color var(--t-base);
}
.nav-item:hover { color: var(--plum); }
.nav-item.active {
  color: var(--plum-deep);
  border-bottom-color: var(--rose);
}
.nav-badge {
  background: var(--rose-faint);
  color: var(--rose);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}


/* ============================================
   FOOTER
   Brand on left, columns of links, fine print row.
   ============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}
.footer-brand {
  margin-bottom: var(--space-3);
}
.footer-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.footer-brand-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--text-mid);
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: 1.4;
  letter-spacing: var(--ls-eyebrow);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: var(--space-2);
}
.footer-col a:hover {
  color: var(--plum);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-light);
}


/* ============================================
   TWO-WAY MATCH PANEL
   Compact panel: blended figure, bar, two reciprocal
   scores, status meta. The platform's USP made visible.
   ============================================ */
.match-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.match-top {
  padding: var(--space-4) var(--space-5) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rose);
  font-weight: 600;
}
.match-blend {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--plum-deep);
  letter-spacing: -0.015em;
  line-height: 1;
}
.match-blend small {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  font-family: var(--sans);
  margin-left: var(--space-1);
}
.match-bar-wrap { padding: 0 var(--space-5) var(--space-4); }
.match-bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-light) 0%, var(--rose) 100%);
  border-radius: var(--radius-pill);
}
.match-sides {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.match-side {
  padding: 14px var(--space-4);
  text-align: center;
}
.match-divider { background: var(--border); }
.match-side-label {
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-1);
}
.match-side-pct {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--plum-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.match-side-pct.partial { color: var(--rose); }
.match-side-pct.zero { color: var(--rose); }
.match-meta {
  padding: 12px var(--space-5) 14px;
  font-size: var(--fs-xs);
  color: var(--text-mid);
}
.match-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 0;
  line-height: 1.5;
}
.match-meta-row .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--text-light);
}
.match-meta a {
  color: var(--rose);
  font-weight: 500;
}


/* ============================================
   STAR RATING (private, user-set)
   ============================================ */
.match-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px var(--space-5) 12px;
  border-bottom: 1px solid var(--border);
}
.match-stars-label {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 8px;
  flex-shrink: 0;
}
.match-star {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast);
}
.match-star svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.match-star:hover { color: var(--rose-light); }
.match-star.lit { color: var(--rose); }
.match-stars:hover .match-star.lit { color: var(--rose-light); }
.match-stars:hover .match-star:hover,
.match-stars:hover .match-star:hover ~ .match-star { color: var(--border); }
.match-stars:hover .match-star.lit:hover,
.match-stars:hover .match-star.lit:hover ~ .match-star.lit { color: var(--rose-light); }
.match-stars-private {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-light);
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.match-stars-private svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}


/* ============================================
   MATCH SCORE (compact card-style display)
   ============================================ */
.match-score {
  padding: 14px var(--space-5);
  border-bottom: 1px solid var(--border);
}
.match-score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.match-score-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose);
  font-weight: 600;
}
.match-score-blend {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  color: var(--plum-deep);
  letter-spacing: -0.015em;
  line-height: 1;
}
.match-score-blend small {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  font-family: var(--sans);
  margin-left: var(--space-1);
  letter-spacing: 0;
}
.match-score-bar {
  height: 5px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.match-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-light) 0%, var(--rose) 100%);
  border-radius: var(--radius-pill);
}
.match-score-detail {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-mid);
}
.match-score-detail strong {
  font-weight: 500;
  color: var(--plum-deep);
}


/* ============================================
   MATCH MARK (tick / cross)
   The matching engine's per-criterion verdict.
   ============================================ */
.match-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.match-mark svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.match-mark.match {
  background: var(--good-faint);
}
.match-mark.match svg { stroke: var(--good); }
.match-mark.no-match {
  background: var(--rose-faint);
}
.match-mark.no-match svg { stroke: var(--rose); }
.match-mark.neutral {
  background: transparent;
}


/* ============================================
   IMPORTANCE DOT
   Single circle that deepens through 5 levels.
   data-level: 0 (not), 1 (slight), 2 (mod), 3 (decided), 4 (non-neg).
   ============================================ */
.importance-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  display: inline-block;
  flex-shrink: 0;
}
.importance-dot[data-level="1"] { background: #E5D6CD; border-color: #E5D6CD; }
.importance-dot[data-level="2"] { background: #D49C9C; border-color: #D49C9C; }
.importance-dot[data-level="3"] { background: var(--rose); border-color: var(--rose); }
.importance-dot[data-level="4"] { background: var(--plum-deep); border-color: var(--plum-deep); }

.importance-spacer {
  display: inline-block;
  width: 14px;
}

.importance-legend {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.importance-legend-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.importance-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: var(--fs-sm);
  color: var(--text-mid);
}
.importance-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}


/* ============================================
   PREFERENCES TABLE
   Two-column comparative table with match marks &
   importance dots. Core matching-engine surface.
   ============================================ */
.prefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}
@media (max-width: 900px) {
  .prefs-grid { grid-template-columns: 1fr; gap: 36px; }
}

.prefs-column h3 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.pref-row {
  display: grid;
  grid-template-columns: 130px 1fr 22px 16px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-md);
}
.pref-row:last-child { border-bottom: none; }

.pref-label { color: var(--text-mid); font-size: 14px; }
.pref-value { color: var(--text); }
.pref-row.mismatch .pref-value { color: var(--rose); }


/* ============================================
   CHIPS
   Pill-shaped tags for list values (interests, music, etc).
   ============================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: var(--plum-faint);
  color: var(--plum-deep);
  font-size: var(--fs-sm);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}


/* ============================================
   FACT ROWS
   Generic two-column label/value rows.
   Used for "More about her" detail lists.
   ============================================ */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-12);
}
@media (max-width: 900px) {
  .fact-grid { grid-template-columns: 1fr; }
}

.fact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}
.fact-row-label { color: var(--text-mid); font-size: var(--fs-sm); }
.fact-row-value { color: var(--text); }
.fact-row.wide { grid-column: 1 / -1; }


/* ============================================
   GROUP HEADER
   Subgroup label inside a section (small-caps + rule).
   Used for "Personality & appearance", "Leisure" etc.
   ============================================ */
.group {
  margin-bottom: 36px;
}
.group:last-child { margin-bottom: 0; }

.group-title {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--rose);
  font-weight: 600;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}


/* ============================================
   PROSE BLOCK
   Long-form member-written content (own words, bio).
   ============================================ */
.prose p {
  max-width: 65ch;
  margin-bottom: 14px;
  font-size: var(--fs-base);
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }


/* ============================================
   QUIET LINE
   Empty-state line: italic serif, centred.
   Used when a section has no content.
   ============================================ */
.quiet-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--text-mid);
  text-align: center;
  padding: 18px 0;
}
.quiet-line .chev {
  color: var(--text-light);
  margin-left: var(--space-2);
  cursor: pointer;
}
