/*
Theme Name: Soulove App
Theme URI: https://soulove-new.com
Author: Soulove App
Author URI: https://soulove-new.com
Description: Official theme for Soulove App — an AI girlfriend chat companion platform. Includes an auto-provisioned homepage, companion profile pages, and all core site pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: soulove
*/

/* =========================================================
   Soulove App — Design System
   Palette: charcoal / near-black base, mandarin accent
   Type: Fraunces (display) + Manrope (body) + JetBrains Mono (labels)
   ========================================================= */

:root{
  --bg:            #141318;
  --bg-soft:       #1B1A20;
  --surface:       #221F26;
  --surface-2:     #2B2731;
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);

  --mandarin:       #FF6B35;
  --mandarin-light: #FFA36C;
  --mandarin-deep:  #E8511E;
  --mandarin-dim:   rgba(255,107,53,.14);

  --text:        #F6F2ED;
  --text-muted:  #B3ADB9;
  --text-faint:  #837C8A;

  --online:  #4ADE80;
  --shadow:  0 20px 60px rgba(0,0,0,.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

:focus-visible{
  outline:2px solid var(--mandarin-light);
  outline-offset:3px;
  border-radius:4px;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--mandarin-light);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:var(--mandarin);
  box-shadow:0 0 0 4px var(--mandarin-dim);
}

h1,h2{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.01em;
  margin:0 0 16px;
  color:var(--text);
}
h1{ font-size:clamp(2.4rem, 5vw, 4.1rem); }
h2{ font-size:clamp(1.7rem, 3.4vw, 2.6rem); }
p{ margin:0 0 16px; color:var(--text-muted); }
.lede{ font-size:1.15rem; color:var(--text-muted); max-width:60ch; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 30px;
  border-radius:var(--radius-pill);
  font-family:var(--font-body);
  font-weight:700;
  font-size:15.5px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg, var(--mandarin-light), var(--mandarin) 55%, var(--mandarin-deep));
  color:#1A1108;
  box-shadow:0 10px 30px rgba(255,107,53,.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px rgba(255,107,53,.48); }
.btn-primary:active{ transform:translateY(0); }
.btn-ghost{
  background:transparent;
  border-color:var(--border-strong);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--mandarin-light); color:var(--mandarin-light); }
.btn-block{ width:100%; }
.btn.is-loading{ opacity:.85; pointer-events:none; }
.btn .spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(0,0,0,.25); border-top-color:#1A1108;
  animation:spin .7s linear infinite;
  display:none;
}
.btn.is-loading .spinner{ display:inline-block; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(20,19,24,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  max-width:var(--container);
  margin:0 auto;
}
.nav-brand{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.35rem;
  display:flex; align-items:center; gap:10px;
}
.nav-brand .dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--mandarin);
  box-shadow:0 0 0 5px var(--mandarin-dim);
}
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ color:var(--text-muted); font-weight:600; font-size:14.5px; transition:color .15s; }
.nav-links a:hover{ color:var(--text); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-toggle{
  display:none; background:none; border:1px solid var(--border-strong);
  border-radius:10px; width:42px; height:42px; color:var(--text);
  align-items:center; justify-content:center;
}
@media (max-width: 900px){
  .nav-links{
    position:fixed; inset:70px 0 0 0; background:var(--bg-soft);
    flex-direction:column; justify-content:flex-start; padding:36px 24px;
    gap:24px; transform:translateX(100%); transition:transform .25s ease;
    z-index:90;
  }
  .nav-links.is-open{ transform:translateX(0); }
  .nav-links a{ font-size:1.1rem; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ position:relative; padding:64px 0 80px; overflow:hidden; }
.hero::before{
  content:"";
  position:absolute; top:-220px; right:-160px;
  width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,107,53,.28), transparent 70%);
  filter:blur(10px);
  pointer-events:none;
}
.hero-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:40px; flex-wrap:wrap; position:relative; z-index:1; }
.hero-copy{ max-width:640px; }
.hero-copy h1{ margin-bottom:18px; }
.hero-actions{ display:flex; align-items:center; gap:16px; margin-top:30px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:22px; margin-top:34px; flex-wrap:wrap; }
.hero-trust div{ display:flex; flex-direction:column; }
.hero-trust strong{ font-family:var(--font-display); font-size:1.5rem; color:var(--text); }
.hero-trust span{ font-size:12.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.06em; }

.hero-models{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; position:relative; z-index:1; }
.hero-models-label{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.hero-models-row{ display:flex; gap:14px; }
.hero-model-tile{
  position:relative;
  width:104px; height:150px;
  border-radius:var(--radius-md);
  overflow:hidden;
  cursor:pointer;
  border:1px solid var(--border-strong);
  box-shadow:0 12px 30px rgba(0,0,0,.4);
  transition:transform .2s ease, box-shadow .2s ease;
}
.hero-model-tile img{ width:100%; height:100%; object-fit:cover; }
.hero-model-tile:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(255,107,53,.3); }
.hero-model-tile .pulse{
  position:absolute; top:10px; right:10px;
  width:11px; height:11px; border-radius:50%;
  background:var(--online); border:2px solid rgba(20,19,24,.9);
}
.hero-model-tile .tile-name{
  position:absolute; left:0; right:0; bottom:0;
  padding:8px 10px;
  font-size:12px; font-weight:700;
  background:linear-gradient(to top, rgba(20,19,24,.92), transparent);
  color:var(--text);
}
@media (max-width:520px){
  .hero-model-tile{ width:84px; height:120px; }
}

/* ---------- Chat demo window (signature element) ---------- */
.chat-section{ padding:40px 0 90px; position:relative; }
.chat-shell{
  max-width:560px; margin:0 auto;
  background:linear-gradient(180deg, var(--surface), var(--bg-soft));
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.chat-shell-head{ display:flex; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--border); background:rgba(255,255,255,.02); }
.chat-shell-head img{ width:42px; height:42px; border-radius:50%; object-fit:cover; }
.chat-shell-head .who strong{ display:block; font-size:15px; }
.chat-shell-head .who span{ font-size:12.5px; color:var(--online); display:flex; align-items:center; gap:6px; }
.chat-shell-head .who span::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--online); }
.chat-body{ padding:24px 22px; min-height:300px; display:flex; flex-direction:column; gap:12px; }
.bubble{ max-width:78%; padding:12px 16px; border-radius:18px; font-size:14.5px; line-height:1.5; opacity:0; transform:translateY(8px); animation:bubbleIn .4s ease forwards; }
@keyframes bubbleIn{ to{ opacity:1; transform:translateY(0); } }
.bubble.them{ align-self:flex-start; background:var(--surface-2); color:var(--text); border-bottom-left-radius:6px; }
.bubble.me{ align-self:flex-end; background:linear-gradient(135deg, var(--mandarin-light), var(--mandarin)); color:#1A1108; border-bottom-right-radius:6px; font-weight:600; }
.typing-indicator{ align-self:flex-start; display:flex; gap:5px; padding:14px 18px; background:var(--surface-2); border-radius:18px; border-bottom-left-radius:6px; }
.typing-indicator span{ width:7px; height:7px; border-radius:50%; background:var(--text-faint); animation:blink 1.2s infinite ease-in-out; }
.typing-indicator span:nth-child(2){ animation-delay:.2s; }
.typing-indicator span:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,80%,100%{ opacity:.25; } 40%{ opacity:1; } }
.chat-shell-foot{ padding:20px 22px 26px; border-top:1px solid var(--border); text-align:center; background:rgba(255,107,53,.04); }
.chat-shell-foot p{ font-size:13.5px; margin-bottom:16px; color:var(--text-faint); }

/* ---------- Two-column text blocks ---------- */
.text-blocks{ padding:30px 0 90px; }
.text-blocks-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
@media (max-width: 860px){ .text-blocks-grid{ grid-template-columns:1fr; gap:40px; } }
.text-block .num{ font-family:var(--font-mono); color:var(--mandarin-light); font-size:13px; letter-spacing:.1em; }

/* ---------- Model grid / rail ---------- */
.models-section{ padding:20px 0 90px; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:38px; flex-wrap:wrap; }
.models-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:22px; }
@media (max-width: 980px){ .models-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .models-grid{ grid-template-columns:1fr; } }
.model-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.model-card:hover{ transform:translateY(-6px); border-color:var(--border-strong); box-shadow:var(--shadow); }
.model-card-photo{ position:relative; aspect-ratio:4/5; overflow:hidden; }
.model-card-photo img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.model-card:hover .model-card-photo img{ transform:scale(1.05); }
.model-card-status{ position:absolute; top:12px; left:12px; background:rgba(20,19,24,.7); backdrop-filter:blur(6px); padding:5px 10px; border-radius:var(--radius-pill); font-size:11.5px; display:flex; align-items:center; gap:6px; }
.model-card-status.online::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--online); }
.model-card-status.offline::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--text-faint); }
.model-card-body{ padding:18px; flex:1; display:flex; flex-direction:column; gap:6px; }
.model-card-name{ font-family:var(--font-display); font-size:1.25rem; display:flex; align-items:baseline; gap:8px; }
.model-card-name span{ font-family:var(--font-body); font-size:13px; color:var(--text-faint); font-weight:600; }
.model-card-tag{ font-size:13.5px; color:var(--text-muted); flex:1; }
.model-card-cta{ margin-top:10px; }

/* ---------- FAQ ---------- */
.faq-section{ padding:20px 0 100px; }
.faq-list{ max-width:820px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.faq-q{ width:100%; text-align:left; background:none; border:none; color:var(--text); padding:20px 24px; font-weight:700; font-size:15.5px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.faq-q::after{ content:"+"; font-size:22px; color:var(--mandarin-light); transition:transform .2s; flex-shrink:0; }
.faq-item.is-open .faq-q::after{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; padding:0 24px; }
.faq-a p{ padding-bottom:20px; margin:0; }
.faq-item.is-open .faq-a{ max-height:400px; }

/* ---------- CTA banner ---------- */
.cta-banner{ margin:0 auto 100px; max-width:var(--container); padding:0 24px; }
.cta-banner-inner{ background:linear-gradient(120deg, var(--mandarin-deep), var(--mandarin) 60%, var(--mandarin-light)); border-radius:var(--radius-lg); padding:56px 48px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap; color:#1A1108; }
.cta-banner-inner h2{ color:#1A1108; margin-bottom:6px; }
.cta-banner-inner p{ color:rgba(26,17,8,.75); margin:0; }
.cta-banner-inner .btn-primary{ background:#181119; color:var(--mandarin-light); box-shadow:0 10px 30px rgba(0,0,0,.35); }

/* ---------- Generic content page ---------- */
.page-hero{ padding:60px 0 40px; }
.page-hero h1{ max-width:900px; }
.content-page{ padding:10px 0 90px; }
.content-page .prose{ max-width:820px; }
.content-page .prose h2{ margin-top:46px; }
.content-page .prose p{ font-size:16px; }
.content-page .prose ul{ margin:0 0 20px; padding-left:22px; list-style:disc; color:var(--text-muted); }
.content-page .prose li{ margin-bottom:8px; }

.breadcrumbs{ font-size:13px; color:var(--text-faint); margin-bottom:18px; }
.breadcrumbs a{ color:var(--text-faint); }
.breadcrumbs a:hover{ color:var(--mandarin-light); }

/* ---------- Feature blocks (image + text) ---------- */
.feature-row{ display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; padding:50px 0; border-bottom:1px solid var(--border); }
.feature-row:last-child{ border-bottom:none; }
.feature-row.reverse .feature-media{ order:2; }
@media (max-width:860px){ .feature-row{ grid-template-columns:1fr; } .feature-row.reverse .feature-media{ order:0; } }
.feature-media{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); }
.feature-media img{ width:100%; height:100%; object-fit:cover; }
.feature-list{ margin-top:18px; display:flex; flex-direction:column; gap:12px; }
.feature-list li{ display:flex; gap:12px; align-items:flex-start; color:var(--text-muted); font-size:15px; }
.feature-list li::before{ content:"✓"; color:var(--mandarin-light); font-weight:700; flex-shrink:0; }

/* ---------- Model profile page ---------- */
.profile-hero{ padding:56px 0 20px; }
.profile-grid{ display:grid; grid-template-columns:340px 1fr; gap:50px; }
@media (max-width:860px){ .profile-grid{ grid-template-columns:1fr; } }
.profile-photo{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); position:sticky; top:100px; }
.status-badge{ display:inline-flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); padding:7px 14px; border-radius:var(--radius-pill); font-size:12.5px; margin-bottom:18px; }
.status-badge.online::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--online); }
.status-badge.offline::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--text-faint); }
.tag-row{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 28px; }
.tag{ background:var(--surface-2); border:1px solid var(--border); padding:8px 14px; border-radius:var(--radius-pill); font-size:13px; color:var(--text-muted); }
.profile-stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:28px 0; }
.profile-stat{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px 18px; }
.profile-stat span{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin-bottom:4px; }
.profile-stat strong{ font-family:var(--font-display); font-size:1.1rem; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:60px 0 30px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand{ font-family:var(--font-display); font-size:1.3rem; margin-bottom:10px; }
.footer-col h2{ font-family:var(--font-body); font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); margin-bottom:16px; font-weight:700; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:var(--text-muted); font-size:14.5px; }
.footer-col a:hover{ color:var(--mandarin-light); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:46px; padding-top:24px; border-top:1px solid var(--border); font-size:13px; color:var(--text-faint); }
.footer-disclaimer{ max-width:760px; font-size:12.5px; color:var(--text-faint); margin-top:22px; line-height:1.6; }

/* ---------- Cookie banner ---------- */
.cookie-banner{ position:fixed; left:20px; right:20px; bottom:20px; z-index:200; max-width:640px; margin:0 auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-md); box-shadow:var(--shadow); padding:22px 24px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; transform:translateY(140%); transition:transform .4s ease; }
.cookie-banner.is-visible{ transform:translateY(0); }
.cookie-banner p{ margin:0; font-size:13.5px; color:var(--text-muted); flex:1; min-width:220px; }
.cookie-banner a{ color:var(--mandarin-light); text-decoration:underline; }
.cookie-actions{ display:flex; gap:10px; }
.cookie-actions .btn{ padding:11px 18px; font-size:13.5px; }

/* ---------- Utilities ---------- */
.text-center{ text-align:center; }
.badge-list{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.badge{ font-size:12px; font-family:var(--font-mono); color:var(--text-faint); border:1px solid var(--border); padding:6px 12px; border-radius:var(--radius-pill); }
.skip-link{ position:absolute; left:-999px; top:auto; background:var(--mandarin); color:#1A1108; padding:12px 18px; border-radius:8px; z-index:1000; }
.skip-link:focus{ left:16px; top:16px; }

/* WordPress core alignment helpers */
.alignwide{ max-width:1180px; margin-left:auto; margin-right:auto; }
.alignfull{ width:100%; max-width:none; }
