/*
Theme Name: Musas Online
Theme URI: https://receitasrendaextra.shop/
Author: você
Description: Tema de perfis/relacionamento com chat de assistente virtual, grid de perfis e espaços de anúncio reservados.
Version: 1.0
Text Domain: musas-online
*/

:root {
  --bg: #1a1025;
  --bg-alt: #241733;
  --card: #2b1c3d;
  --text: #f5f0ff;
  --text-muted: #b8a9cc;
  --accent: #e879c4;
  --accent-2: #f0b94d;
  --online: #4ade80;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

header.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  max-width: 1200px;
	  margin: 0 auto;
	  padding: 18px 32px;
}
.logo { font-size: 22px; font-weight: 700; color: var(--accent); }

nav.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
nav.main-nav a { color: var(--text-muted); font-size: 15px; }
nav.main-nav a:hover { color: var(--text); }

.btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #b74fd6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover {
  filter: brightness(1.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184,79,214,0.35);
}

/* ---- Ad placeholder: troque pelo seu código de anúncio real ---- */
.ad-slot {
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  margin: 24px auto;
}
.ad-slot--banner { max-width: 1100px; min-height: 90px; }
.ad-slot--row { max-width: 1100px; min-height: 220px; }
.ad-slot--inline { min-height: 120px; }

/* ---- Hero / home ---- */
.hero { max-width: 900px; margin: 64px auto 32px; padding: 0 24px; text-align: left; }
.hero .eyebrow { color: var(--accent-2); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.hero h1 { font-size: 48px; margin: 12px 0 20px; font-family: Georgia, serif; }
.hero .see-all { float: right; color: var(--accent); font-size: 14px; }

/* ---- Grid de perfis ---- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.profile-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: block; }
.profile-card .thumb {
  position: relative;
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: #fff;
  background-size: cover; background-position: center;
}
.profile-card .info { padding: 14px 16px; }
.status { font-size: 12px; color: var(--online); margin-bottom: 4px; }
.status--on-photo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  margin-bottom: 0;
  background: rgba(10,30,15,0.6);
  border: 1px solid rgba(140,255,160,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
.profile-card h3 { margin: 0 0 2px; font-size: 18px; }
.profile-card .profession { font-size: 13px; color: var(--accent-2); margin-bottom: 6px; }
.profile-card .bio-snippet { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-card .see-more { font-size: 13px; color: var(--accent); margin-top: 8px; display: inline-block; }

.filters { display: flex; gap: 10px; margin: 8px 0 28px; padding: 0 24px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.filters a { padding: 8px 18px; border-radius: 999px; background: var(--card); color: var(--text-muted); font-size: 14px; }
.filters a.active { background: var(--accent); color: #fff; }

/* ---- Página de perfil ---- */
.profile-detail { max-width: 1100px; margin: 40px auto; padding: 0 24px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; }
.profile-detail-layout { display: flex; gap: 40px; align-items: flex-start; }
.profile-detail-layout .profile-hero-img { flex: 0 0 380px; width: 380px; margin-bottom: 0; }
.profile-detail-layout .profile-detail-info { flex: 1; min-width: 280px; }
@media (max-width: 780px) {
  .profile-detail-layout { flex-direction: column; }
  .profile-detail-layout .profile-hero-img { width: 100%; flex: none; }
}
.profile-hero-img {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 700; color: #fff; margin-bottom: 24px;
  background-size: cover; background-position: center;
}
.profile-detail h1 { font-size: 28px; margin-bottom: 4px; }
.profile-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.profile-detail .bio { font-size: 15px; margin-bottom: 24px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { background: var(--card); padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--text-muted); }
.profile-detail-info .status {
  display: inline-block;
  background: rgba(10,30,15,0.6);
  border: 1px solid rgba(140,255,160,0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 16px;
}
.profile-detail-info .btn { padding: 20px 32px; font-size: 18px; width: 100%; text-align: center; }

/* ---- Chat (estilo WhatsApp) ---- */
/* Cabecalho e campo de digitar fixos via position:sticky. Mais robusto que
   calcular altura de viewport via JS (--app-vh), que falhava de forma
   inconsistente entre Android e iOS. Sticky funciona nativamente em
   qualquer navegador mobile, acompanhando a barra de endereco aparecer/sumir. */
.musas-chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background-color: #e5ddd5;
}
.chat-header {
	  position: sticky; top: 0; z-index: 20;
	  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
	    padding-top: calc(14px + env(safe-area-inset-top));
	    background: #6b5738; border-bottom: 1px solid rgba(255,255,255,0.08);
	  color: #fff;
}
.chat-header a { color: #fff; }
.chat-header .avatar {
	  width: 40px; height: 40px; border-radius: 50%;
	  display: flex; align-items: center; justify-content: center;
	  font-weight: 700; color: #fff; background-size: cover; background-position: center;
}
.chat-header .who { font-weight: 600; font-size: 15px; color: #fff; }
.chat-header .status-line { font-size: 12px; color: rgba(255,255,255,0.75); }
.chat-body {
	  margin: 0; padding: 24px; flex: 1 1 auto; min-height: 0;
	  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
	  background-color: #e5ddd5;
	  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
	  background-size: 22px 22px;
}
.chat-date { display: flex; justify-content: center; margin: 4px 0 18px; }
.chat-date span { background: #e1f2fb; color: #54656f; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); }
.bubble { max-width: 70%; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,0.15); position: relative; }
.bubble.bot { background: #ffffff; color: #111b21; border-top-left-radius: 0; }
.bubble.user { background: #d9fdd3; color: #111b21; margin-left: auto; border-top-right-radius: 0; }
.bubble.typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; width: fit-content; }
.bubble.typing .dot {
	  width: 7px; height: 7px; border-radius: 50%;
	  background: #93938f; opacity: 0.5;
	  animation: musas-typing-bounce 1.2s infinite ease-in-out;
}
.bubble.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes musas-typing-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}
.chat-form {
	  position: sticky; bottom: 0; z-index: 20;
	  flex: none; display: flex; gap: 10px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
	  background: #f0f0f0; border-top: 1px solid rgba(0,0,0,0.08);
}
.chat-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: none; background: #ffffff; color: #111b21; font-size: 14px; }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: #6b5738; color: #fff; cursor: pointer; }

html, body { overflow-x: hidden; max-width: 100%; }
.musas-chat-page { overflow-x: hidden; width: 100%; max-width: 100vw; }

@media (max-width: 600px) {
  .chat-header { padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); gap: 10px; }
  .chat-header .avatar { width: 36px; height: 36px; flex: none; font-size: 14px; }
  .chat-header .who { font-size: 14px; }
  .chat-header .status-line { font-size: 11px; }
  .chat-body { padding: 16px 12px; }
  .bubble { max-width: 85%; font-size: 13.5px; }
  .chat-form { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .chat-form input { padding: 10px 14px; font-size: 16px; }
  .chat-form button { width: 40px; height: 40px; }
}
footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 60px; padding: 32px 24px; text-align: center;
  color: var(--text-muted); font-size: 13px;
}
footer.site-footer .footer-logo { color: var(--accent); font-weight: 700; margin-bottom: 6px; }
footer.site-footer nav { display: flex; gap: 18px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }

.legal { max-width: 700px; margin: 40px auto; padding: 0 24px; }
.legal h1 { margin-bottom: 16px; }
.pagination-nav {
	  display: flex;
	  flex-wrap: wrap;
	  justify-content: center;
	  gap: 8px;
	  margin: 40px 0 8px;
}
.pagination-nav a { color: var(--text-muted); padding: 8px 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; font-size: 14px; }
.pagination-nav a:hover, .pagination-nav a.current { color: #fff; background: var(--accent); border-color: var(--accent); }
.pagination-nav span.dots { color: var(--text-muted); padding: 8px 4px; }

/* ---- Modal de anuncio (Conteudo Promovido) ---- */
.ad-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10,4,15,0.87);
  backdrop-filter: blur(5px);
}
.ad-modal.is-visible { display: flex; }
.ad-modal-box {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 46px 20px 22px;
  border: 1px solid rgba(232,121,196,0.35);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
}
.ad-modal-title {
  position: absolute;
  top: 17px;
  left: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.ad-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 16px;
}
.ad-modal-close.ready { background: #d7ad62; color: #17181d; cursor: pointer; }
.ad-modal-close:disabled { cursor: not-allowed; }
.ad-modal .ad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  min-height: 280px;
  margin: 0 auto;
  overflow: hidden;
}
.ad-modal .ad > * { max-width: 100% !important; margin-inline: auto !important; }
.ad-countdown { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }
body:has(.ad-modal.is-visible) { overflow: hidden; }


/* ---- Preloader global ---- */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #12141b;
  color: #d7ad62;
  transition: opacity 0.35s, visibility 0.35s;
}
.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  font-size: 30px;
  letter-spacing: 7px;
}
.site-preloader span {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* t2 */
