/* AmberMeet — warm, dark, image-forward listing design. No framework. */

:root {
  --bg: #17120e;
  --surface: #211a14;
  --surface-2: #2a211a;
  --border: #3a2d22;
  --text: #f3e9dd;
  --muted: #b09a86;
  --accent: #e0913f;
  --accent-hover: #f0a656;
  --accent-text: #1d1206;
  --online: #6fce7e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

/* Classes below set display:flex/grid, which would override the hidden
   attribute's default styling — force it. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 18, 14, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: Georgia, serif; font-size: 22px; color: var(--text);
  text-decoration: none; letter-spacing: .3px;
}
.logo em { color: var(--accent); font-style: normal; }

/* Hero */
.hero { text-align: center; padding: 56px 0 36px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 26px;
  font-size: 15px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* Listing grid */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding-bottom: 56px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-photo { position: relative; display: block; }
.card-photo img { width: 100%; aspect-ratio: 300 / 340; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.badge-online { background: rgba(20, 40, 24, .85); color: var(--online); }
.badge-online::before { content: "● "; font-size: 10px; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 20px; }
.card-body .muted { font-size: 13px; margin: 0; }
.tagline {
  margin: 4px 0 12px; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

/* Native "Sponsored" slot — a labeled ad card that blends with the grid. */
.card-sponsored { justify-content: flex-start; }
.sponsored-label {
  display: block; padding: 9px 14px;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.ad-slot {
  flex: 1; min-height: 240px; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ad-slot img { border-radius: 8px; }
.ad-slot:empty::after { content: "Ad"; color: var(--muted); opacity: .35; font-size: 13px; }

/* Profile / prelander page */
.profile {
  display: grid; gap: 32px; grid-template-columns: minmax(260px, 380px) 1fr;
  padding: 44px 0 64px; align-items: start;
}
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }
.profile-photo img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); aspect-ratio: 300 / 340; object-fit: cover;
}
.profile h1 { margin: 0 0 6px; font-size: 34px; }
.profile blockquote {
  margin: 18px 0; padding-left: 16px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: italic; font-size: 17px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--muted);
}

/* Prelander quiz */
.quiz {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.quiz-progress {
  height: 6px; background: var(--surface-2); border-radius: 999px;
  overflow: hidden; margin-bottom: 16px;
}
.quiz-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.quiz-step-count {
  margin: 0 0 6px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.quiz-question { margin: 0 0 18px; font-size: 22px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { text-align: left; padding: 14px 18px; font-size: 15px; }
.quiz-opt:hover { border-color: var(--accent); color: var(--text); }
.quiz-spinner {
  width: 34px; height: 34px; margin: 14px auto;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: quiz-spin .8s linear infinite;
}
@keyframes quiz-spin { to { transform: rotate(360deg); } }
.match-badge { margin: 0 0 16px; font-size: 16px; color: var(--accent); }

/* "It's a match!" reveal */
.match-anim {
  position: relative; overflow: hidden; text-align: center;
  padding: 30px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.match-ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.match-ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.match-ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.match-ring-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.match-photo {
  position: absolute; inset: 16px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--surface); animation: match-pop .5s ease both;
}
.match-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-pct {
  font-family: Georgia, serif; font-weight: 600; font-size: 40px;
  color: var(--accent); line-height: 1;
}
.match-title { margin: 8px 0 4px; font-size: 26px; }
.match-sub { margin: 0; color: var(--muted); }
@keyframes match-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.match-hearts { position: absolute; inset: 0; pointer-events: none; }
.match-hearts span {
  position: absolute; bottom: -10px; color: var(--accent); opacity: 0; font-size: 20px;
  animation: match-float 2.4s ease-in infinite;
}
.match-hearts span:nth-child(1) { left: 22%; animation-delay: .1s; }
.match-hearts span:nth-child(2) { left: 50%; font-size: 26px; animation-delay: .5s; }
.match-hearts span:nth-child(3) { left: 74%; animation-delay: .9s; }
@keyframes match-float {
  0%   { transform: translateY(0) scale(.8); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translateY(-160px) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .match-photo, .match-hearts span { animation: none; }
  .match-hearts span { opacity: 0; }
}

/* Lead capture panel */
.lead-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 8px;
}
.lead-panel h2 { margin: 0 0 6px; font-size: 20px; }
.lead-panel p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.lead-panel form { display: flex; gap: 10px; }
@media (max-width: 520px) { .lead-panel form { flex-direction: column; } }
.lead-panel input[type="email"] {
  flex: 1; padding: 12px 16px; font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; outline: none;
}
.lead-panel input[type="email"]:focus { border-color: var(--accent); }
.or-divider { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; }

/* Age gate */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 7, 5, .92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.overlay-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 420px; padding: 32px; text-align: center;
}
.overlay-box h2 { margin: 0 0 10px; }
.overlay-box p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.overlay-box .btn { margin: 4px 6px; }

/* Exit-intent interstitial */
.exit-box { position: relative; max-width: 440px; }
.exit-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: 0; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.exit-close:hover { color: var(--text); }
.exit-box .btn { margin: 6px 6px 0; }
.exit-box .btn-ghost { display: block; margin: 12px auto 0; }
.exit-ad {
  margin: 16px 0; min-height: 90px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}

/* Push soft-prompt banner */
.push-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 70; width: min(440px, calc(100vw - 32px));
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
.push-banner p { margin: 0; font-size: 14px; flex: 1; }
.push-banner .btn { padding: 8px 16px; font-size: 13px; white-space: nowrap; }

/* Cookie-consent bar */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface-2); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
  padding: 14px 20px;
}
.cookie-bar .container {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-bar p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; min-width: 220px; }
.cookie-bar p a { color: var(--accent); }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar .btn { padding: 9px 20px; font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px; color: var(--muted); font-size: 13px;
}
.site-footer nav { margin-bottom: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.disclaimer { max-width: 720px; }

/* Legal pages */
.legal { max-width: 720px; padding: 44px 0 64px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
