/*
Theme Name: Mylovely
Theme URI: https://mylovely.local/
Author: Lovable
Description: Luxury WordPress showcase theme for Mylovely.
Version: 1.0.0
Text Domain: mylovely
*/

:root {
  --bg: #120d14;
  --bg-soft: #1a1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #fff6fb;
  --muted: #d7c4cf;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #ff4fa0;
  --brand-2: #ff88bd;
  --accent: #ffd6e7;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --max: 1240px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 79, 160, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(255, 136, 189, 0.12), transparent 25%),
    linear-gradient(180deg, #120d14 0%, #19111d 52%, #100b12 100%);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-shell { min-height: 100vh; position: relative; overflow: clip; }
.site-shell::before,
.site-shell::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: .22;
  z-index: -1;
}
.site-shell::before { top: -8rem; right: -8rem; background: #ff4fa0; }
.site-shell::after { bottom: -10rem; left: -8rem; background: #7b3cff; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(13, 10, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; }
.brand-lockup img { width: 44px; height: 44px; }
.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  letter-spacing: 0;
}
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color .25s ease, transform .25s ease;
}
.site-nav a:hover { color: var(--text); transform: translateY(-1px); }
.cta-button,
.story-cta,
.model-cta,
.contact-cta,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 16px 40px rgba(255, 79, 160, 0.35);
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.cta-button:hover,
.story-cta:hover,
.model-cta:hover,
.contact-cta:hover,
.hero-cta:hover { transform: translateY(-2px) scale(1.01); filter: brightness(1.03); }
.hero {
  padding: 72px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy,
.hero-visual,
.story-card,
.story-copy,
.model-card,
.page-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 38px;
  position: relative;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--accent);
  font-size: .84rem;
  margin-bottom: 18px;
}
.hero h1,
.page-hero h1,
.model-header h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: 0;
}
.hero p,
.page-hero p,
.model-header p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 24px;
}
.hero-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-stat strong { display: block; font-size: 1.5rem; }
.hero-visual {
  overflow: hidden;
  min-height: 100%;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); font-family: Georgia, 'Times New Roman', serif; }
.section-heading p { margin: 0; color: var(--muted); max-width: 58ch; }
.model-grid-section,
.story-section,
.page-section,
.related-section {
  padding: 32px 0 16px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
}
.model-card {
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.model-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,.26); box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.model-thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.model-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.model-card:hover .model-thumb img { transform: scale(1.05); }
.model-body { padding: 16px; }
.model-card h2,
.story-copy h2,
.page-card h2,
.contact-card h2,
.model-section h2,
.related-section h2 { margin: 0 0 10px; font-size: 1.25rem; font-family: Georgia, 'Times New Roman', serif; }
.model-meta { color: var(--accent); font-size: .86rem; margin-bottom: 8px; }
.model-body p { color: var(--muted); margin: 0 0 14px; font-size: .96rem; }
.story-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
}
.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.story-card { overflow: hidden; min-height: 100%; }
.story-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.story-copy { padding: 32px; }
.story-steps { display: grid; gap: 16px; margin: 22px 0; }
.story-step {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.story-step h2 { font-size: 1.06rem; margin-bottom: 8px; }
.story-step p { margin: 0; color: var(--muted); }
.page-hero,
.model-header { padding: 64px 0 24px; }
.page-card,
.contact-card,
.model-panel {
  padding: 30px;
}
.page-card p,
.page-card li,
.contact-card p,
.model-panel p,
.model-panel li { color: var(--muted); }
.page-card ul,
.page-card ol,
.model-panel ul { padding-left: 20px; display: grid; gap: 10px; }
.page-card li::marker,
.model-panel li::marker { color: var(--brand-2); }
.contact-grid,
.model-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 22px;
}
.model-photo {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
}
.model-photo img { width: 100%; height: 100%; object-fit: cover; }
.model-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin: 20px 0 26px;
}
.fact-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.fact-box span { display: block; color: var(--accent); font-size: .82rem; margin-bottom: 4px; }
.site-footer {
  padding: 40px 0 60px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
}
@media (max-width: 1180px) {
  .model-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .hero-grid,
  .story-layout,
  .contact-grid,
  .model-layout { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner { flex-direction: column; justify-content: center; padding: 12px 0; }
  .hero-copy,
  .story-copy,
  .page-card,
  .contact-card,
  .model-panel { padding: 22px; }
  .hero-stats,
  .model-facts,
  .story-gallery { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .model-grid { grid-template-columns: 1fr; }
  .hero h1,
  .page-hero h1,
  .model-header h1 { font-size: 2.35rem; }
}

/* === Mini chat in header === */
.header-inner { gap: 16px; flex-wrap: wrap; }
.mini-chat {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px;
  background: linear-gradient(135deg, rgba(255,79,160,0.18), rgba(123,60,255,0.12));
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 380px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
}
.mini-chat:hover { transform: translateY(-1px); border-color: var(--brand-2); box-shadow: 0 10px 30px rgba(255,79,160,0.18); }
.mini-chat-avatar { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.mini-chat-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.4); }
.mini-chat-dot { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; background: #36e29b; border: 2px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 0 rgba(54,226,155,.6); animation: mini-pulse 1.8s infinite; }
@keyframes mini-pulse { 0%{box-shadow:0 0 0 0 rgba(54,226,155,.7);} 70%{box-shadow:0 0 0 8px rgba(54,226,155,0);} 100%{box-shadow:0 0 0 0 rgba(54,226,155,0);} }
.mini-chat-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mini-chat-name { font-weight: 600; font-size: 0.85rem; color: var(--text); display: flex; gap: 6px; align-items: center; }
.mini-chat-status { font-weight: 400; font-size: 0.7rem; color: #36e29b; }
.mini-chat-message { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.mini-chat-cta { background: var(--brand); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
@media (max-width: 880px) {
  .mini-chat { order: 3; width: 100%; max-width: none; }
  .mini-chat-message { max-width: none; }
}

/* === FAQ === */
.faq-section { padding: 80px 0 100px; }
.faq-list { display: grid; gap: 14px; margin-top: 32px; max-width: 880px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: background .2s ease, border-color .2s ease;
}
.faq-item[open] { background: var(--panel-strong); border-color: var(--brand-2); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); margin-left: 12px; transition: transform .2s ease; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* === Chat panel (right side of header) === */
.header-inner { position: relative; }
.chat-panel {
  margin-left: auto;
  width: 320px;
  max-width: 100%;
  background: linear-gradient(160deg, rgba(255,79,160,0.10), rgba(123,60,255,0.08));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.chat-panel-head { display: flex; align-items: center; gap: 10px; }
.chat-panel-avatar { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.chat-panel-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.4); }
.chat-panel-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; background: #36e29b; border: 2px solid var(--bg); border-radius: 50%; animation: mini-pulse 1.8s infinite; }
.chat-panel-id { display: flex; flex-direction: column; line-height: 1.15; }
.chat-panel-name { font-weight: 700; font-size: .92rem; color: var(--text); }
.chat-panel-status { font-size: .72rem; color: #36e29b; }
.chat-panel-stream {
  min-height: 90px; max-height: 200px; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 2px;
}
.chat-msg {
  align-self: flex-start;
  max-width: 88%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  color: var(--text);
  font-size: .85rem;
  line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  animation: chat-in .35s ease forwards;
}
.chat-msg.is-image { padding: 4px; }
.chat-msg img { display: block; width: 180px; height: auto; border-radius: 10px; }
.chat-typing { display: flex; gap: 4px; padding: 6px 12px; align-self: flex-start; background: rgba(255,255,255,.05); border-radius: 14px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-bounce 1.1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
.chat-typing[hidden] { display: none; }
@keyframes chat-in { to { opacity: 1; transform: translateY(0); } }
@keyframes chat-bounce { 0%,80%,100% { transform: translateY(0); opacity:.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.chat-panel-cta {
  display: inline-block; text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: .88rem;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(255,79,160,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-panel-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255,79,160,.45); }
@media (max-width: 1024px) {
  .chat-panel { width: 280px; }
  .chat-msg img { width: 150px; }
}
@media (max-width: 880px) {
  .chat-panel { order: 3; width: 100%; margin-left: 0; }
}

/* === Hero chat (right side of hero-copy) === */
.chat-panel.hero-chat {
  width: auto;
  margin-left: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  justify-content: space-between;
}
.chat-panel.hero-chat .chat-panel-stream { min-height: 777px; max-height: 777px; }
.chat-panel.hero-chat .chat-msg img { width: 220px; }
@media (max-width: 880px) {
  .chat-panel.hero-chat { width: 100%; order: 2; }
}


/* === Chat refresh v2 === */
.chat-panel.hero-chat {
  width: 100%;
  max-width: 420px;
  padding: 20px 18px 18px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  justify-self: end;
}
.chat-panel.hero-chat .chat-panel-stream {
  min-height: 777px;
  max-height: 777px;
  overflow-y: auto;
  padding: 12px 4px;
  gap: 14px;
  scrollbar-width: thin;
}
.chat-panel.hero-chat .chat-msg {
  align-self: flex-start;
  max-width: 86%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateY(10px) scale(.98);
  animation: chat-in .45s cubic-bezier(.2,.8,.2,1) forwards;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.chat-panel.hero-chat .chat-msg-text {
  font-size: .88rem; line-height: 1.4; color: var(--text);
  padding: 4px 8px 0;
}
.chat-panel.hero-chat .chat-msg-img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; object-fit: cover; aspect-ratio: 4/5;
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex; gap: 5px;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
}
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text); opacity: .5;
  animation: chat-bounce 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
.chat-typing[hidden] { display: none; }
@keyframes chat-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 880px) {
  .chat-panel.hero-chat { max-width: 100%; justify-self: stretch; }
}
