/* ============================================================
   StrangerChat — shared site chrome (header, footer, FAQ, blog)
   Loaded on every page alongside each page's own <style> block.
   ============================================================ */

:root{
  --violet: #6C3CF5;
  --blue: #3B6BFB;
  --pink: #FC57BB;
  --ink: #0D0B1A;
  --muted: #6B7280;
  --line: #ECEAF7;
  --lav: #F0ECFE;
  --online-green: #15803D;
}

.page-wrap{
  width:460px; max-width:100%;
  margin:0 auto;
  display:flex; flex-direction:column; gap:18px;
}

/* ── Site header (logo lives here now, not inside the card) ── */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:4px 4px 0;
}
.site-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.site-logo .logo-icon{
  width:42px; height:42px; border-radius:13px;
  background:linear-gradient(135deg,var(--blue),var(--violet) 70%);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.site-logo .wordmark{ font-weight:800; font-size:1.28rem; line-height:1; margin:0; color:var(--ink); }
.site-logo .wordmark .s2{ color:var(--violet); }
.site-logo .tagline{ font-size:0.6rem; letter-spacing:0.16em; color:#9CA0AE; font-weight:600; margin-top:4px; }
.site-header .head-right{ display:flex; align-items:center; gap:8px; }
.site-header .moon-btn{
  width:36px; height:36px; border-radius:50%;
  background:var(--card-bg, #fff); box-shadow:0 3px 10px var(--surface-shadow-strong, rgba(20,10,60,0.10));
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  border:none; cursor:pointer;
  transition:background-color .3s ease, box-shadow .2s ease, transform .3s ease;
}
.site-header .moon-btn:hover{ transform:translateY(-1px) rotate(-12deg); box-shadow:0 6px 14px var(--surface-shadow-strong, rgba(20,10,60,0.14)); }
.site-header .moon-btn:active{ transform:scale(0.92); }
.site-header .moon-btn:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.site-header .moon-btn svg path{ transition:d .3s ease; }
.site-header .online-pill{
  background:var(--card-bg, #fff); box-shadow:0 3px 10px var(--surface-shadow-strong, rgba(20,10,60,0.10));
  border-radius:18px; padding:6px 16px 7px;
  display:flex; flex-direction:column; align-items:center; line-height:1.15;
  transition:background-color .3s ease, box-shadow .2s ease;
}
.site-header .online-top{ display:flex; align-items:center; gap:5px; font-size:0.82rem; font-weight:700; color:var(--violet); white-space:nowrap; }
.site-header .online-dot{ width:7px; height:7px; border-radius:50%; background:#22C55E; animation:sitePulse 2.2s ease-in-out infinite; }
.site-header .online-sub{ font-size:0.68rem; color:#9CA0AE; font-weight:500; }

/* Online counter number — green everywhere it appears (header pill, hero badges, stat pills) */
[data-online-count]{ color:var(--online-green); font-weight:800; }
@keyframes sitePulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(34,197,94,0.45); } 50%{ box-shadow:0 0 0 5px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce){ *, *::before, *::after{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; } }

/* ── FAQ section (sits on the page background, below the card) ── */
.faq-section{ padding:10px 6px 0; }
.faq-title{ font-size:1.5rem; font-weight:800; color:var(--ink); margin:0 0 16px; }
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{
  background:var(--card-bg, #fff); border-radius:16px; padding:16px 18px;
  box-shadow:0 4px 18px var(--surface-shadow, rgba(20,10,60,0.06));
  border:1.5px solid transparent;
  transition:background-color .3s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.faq-item:hover{ transform:translateY(-1px); box-shadow:0 8px 22px var(--surface-shadow-strong, rgba(20,10,60,0.1)); }
.faq-item[open]{ border-color:#C9B8FC; }
.faq-item summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-weight:700; font-size:0.92rem; color:var(--ink);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .faq-plus{
  flex-shrink:0; width:22px; height:22px; border-radius:50%;
  background:var(--lav); color:var(--violet); font-weight:700;
  display:flex; align-items:center; justify-content:center; font-size:1rem;
  transition:transform .2s ease;
}
.faq-item[open] summary .faq-plus{ transform:rotate(45deg); }
.faq-item p{ margin:12px 0 0; font-size:0.85rem; color:var(--muted); line-height:1.6; animation:fadeUp .3s ease both; }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer{
  border-top:1px solid var(--line);
  padding:18px 6px 30px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-align:center;
}
.site-footer .footer-copy{ font-size:0.8rem; color:var(--muted); font-weight:500; }
.site-footer .footer-links{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; }
.site-footer .footer-links a{ font-size:0.8rem; font-weight:600; color:var(--muted); text-decoration:none; }
.site-footer .footer-links a:hover{ color:var(--violet); }

/* ── Generic content card (used for blog listing / blog post pages) ── */
.content-card{
  background:var(--card-bg, #fff); border-radius:28px; padding:28px 26px 30px;
  box-shadow:0 40px 70px -30px var(--card-shadow, rgba(45,30,110,0.35));
  transition:background-color .3s ease;
}
.content-card h1{ font-size:1.5rem; font-weight:800; color:var(--ink); margin:0 0 10px; line-height:1.3; }
.content-card .eyebrow{
  font-size:0.66rem; letter-spacing:0.14em; font-weight:700;
  color:var(--violet); margin:0 0 12px; text-transform:uppercase;
}
.content-card .lede{ color:var(--muted); font-size:0.92rem; line-height:1.6; margin:0 0 18px; }

/* Blog listing */
.post-grid{ display:flex; flex-direction:column; gap:14px; }
.post-card{
  display:block; text-decoration:none;
  background:var(--card-bg, #fff); border-radius:20px; padding:18px 20px;
  box-shadow:0 4px 18px var(--surface-shadow, rgba(20,10,60,0.06));
  border:2px solid transparent;
  transition:border-color .15s ease, transform .15s ease, box-shadow .2s ease, background-color .3s ease;
}
.post-card:hover{ border-color:#C9B8FC; transform:translateY(-2px); box-shadow:0 10px 24px var(--surface-shadow-strong, rgba(20,10,60,0.1)); }
.post-card .post-icon{
  width:38px; height:38px; border-radius:12px; margin-bottom:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--lav);
}
.post-card h2{ font-size:1.02rem; font-weight:700; color:var(--ink); margin:0 0 6px; }
.post-card p{ font-size:0.82rem; color:var(--muted); line-height:1.55; margin:0 0 10px; }
.post-card .post-read{ font-size:0.78rem; font-weight:700; color:var(--violet); }

/* Blog article body */
.article-hero-img{ width:100%; height:auto; border-radius:18px; display:block; margin:4px 0 22px; box-shadow:0 10px 30px var(--surface-shadow-strong, rgba(20,10,60,0.12)); }
.article-body{ font-size:0.92rem; line-height:1.75; color:#2B2A38; }
.article-body h2{ font-size:1.12rem; font-weight:800; color:var(--ink); margin:26px 0 10px; }
.article-body h3{ font-size:0.98rem; font-weight:700; color:var(--ink); margin:20px 0 8px; }
.article-body p{ margin:0 0 14px; }
.article-body ul{ margin:0 0 14px; padding-left:20px; }
.article-body li{ margin-bottom:6px; }
.article-meta{ display:flex; align-items:center; gap:10px; font-size:0.76rem; color:#9CA0AE; font-weight:600; margin-bottom:16px; }
.article-meta .dot{ width:4px; height:4px; border-radius:50%; background:#D8D8E4; }
.back-link{ display:inline-flex; align-items:center; gap:6px; font-size:0.8rem; font-weight:600; color:var(--muted); text-decoration:none; margin-bottom:4px; }
.back-link:hover{ color:var(--violet); }

/* Visible breadcrumb trail (mirrors BreadcrumbList schema) */
.breadcrumb-trail{ font-size:0.74rem; color:#9CA0AE; font-weight:600; margin:0 0 10px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.breadcrumb-trail a{ color:#9CA0AE; text-decoration:none; }
.breadcrumb-trail a:hover{ color:var(--violet); }
.breadcrumb-trail span[aria-current]{ color:var(--muted); }

/* Related posts (cross-links between blog articles) */
.related-posts{ margin-top:30px; border-top:1px solid var(--line); padding-top:20px; }
.related-title{ font-size:0.98rem; font-weight:800; color:var(--ink); margin:0 0 12px; }
.related-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.related-card{
  display:flex; flex-direction:column; gap:4px; text-decoration:none;
  background:var(--card-bg, #fff); border-radius:14px; padding:14px 16px;
  box-shadow:0 4px 16px var(--surface-shadow, rgba(20,10,60,0.06)); border:2px solid transparent;
  transition:border-color .15s ease, transform .15s ease, background-color .3s ease;
}
.related-card:hover{ border-color:#C9B8FC; transform:translateY(-2px); }
.related-card strong{ font-size:0.84rem; color:var(--ink); font-weight:700; }
.related-card span{ font-size:0.74rem; color:var(--muted); line-height:1.4; }
@media (max-width:480px){ .related-grid{ grid-template-columns:1fr; } }

.article-cta{
  margin-top:26px; border-radius:20px; padding:20px 22px;
  background:linear-gradient(120deg, rgba(59,107,251,0.08), rgba(108,60,245,0.10));
  text-align:center;
}
.article-cta p{ margin:0 0 14px; font-size:0.88rem; color:var(--ink); font-weight:600; }
.article-cta a.start-btn{
  display:inline-flex; text-decoration:none; border-radius:999px; padding:13px 26px;
  background:linear-gradient(100deg,var(--blue),var(--violet) 55%,var(--pink)); color:#fff;
  font-weight:700; font-size:0.92rem; align-items:center; gap:8px;
  box-shadow:0 16px 30px -12px rgba(124,60,245,0.55);
}

@media (max-width:480px){
  .page-wrap{ width:100%; }
  .site-header .online-pill{ padding:5px 12px 6px; }
  .site-header .online-sub{ display:none; }
}
