/* Mini-preview do layout Namorados dentro do <aside id="previewAside"> do /memory/create.
   Seletores isolados em .namorados-preview para não conflitar com o detail real. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Dancing+Script:wght@600&display=swap");

.namorados-preview {
  --nv-bg:        #0f0009;
  --nv-bg-card:   rgba(255,255,255,0.045);
  --nv-rose:      #c4526a;
  --nv-rose-light:#e8849a;
  --nv-text:      #f5e6ea;
  --nv-text-soft: rgba(245,230,234,0.7);
  --nv-border:    rgba(196,82,106,0.2);

  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--nv-bg);
  background-image: url('/static/memory/images/celular.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border: 1.5px solid rgba(196,82,106,0.55);
  box-shadow:
    0 0 0 1px rgba(196,82,106,0.08),
    0 0 18px rgba(196,82,106,0.4),
    0 0 40px rgba(196,82,106,0.15);
  color: var(--nv-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.namorados-preview.hidden {
  display: none;
}

/* Header */
.namorados-preview .nvp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px 8px;
}
.namorados-preview .nvp-brand {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nv-text);
}

/* Title section */
.namorados-preview .nvp-title-section {
  text-align: center;
  padding: 4px 14px 10px;
}
.namorados-preview .nvp-title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nv-text);
  margin: 0 0 4px;
  word-break: break-word;
}
.namorados-preview .nvp-subtitle {
  font-size: 9px;
  color: var(--nv-text-soft);
  font-style: italic;
  margin: 0;
}

/* Hero photo */
.namorados-preview .nvp-photo-frame {
  margin: 0 14px 10px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nv-bg-card);
  border: 1px solid var(--nv-border);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.6), 0 0 16px -6px rgba(196,82,106,0.2);
  display: flex; align-items: center; justify-content: center;
}
.namorados-preview .nvp-photo-frame img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  display: block;
}
.namorados-preview .nvp-photo-frame .nvp-photo-placeholder {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.25;
}

/* Music card */
.namorados-preview .nvp-music-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 8px 10px;
  background: var(--nv-bg-card);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.namorados-preview .nvp-music-card.hidden {
  display: none;
}
.namorados-preview .nvp-music-thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--nv-rose-light);
}
.namorados-preview .nvp-music-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: unset;
}
.namorados-preview .nvp-music-meta {
  flex: 1;
  min-width: 0;
}
.namorados-preview .nvp-music-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--nv-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.namorados-preview .nvp-music-artist {
  font-size: 9px;
  color: var(--nv-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.namorados-preview .nvp-music-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.namorados-preview .nvp-music-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--nv-rose), var(--nv-rose-light));
  border-radius: 2px;
}
.namorados-preview .nvp-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--nv-rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(196,82,106,0.6);
}

/* Counter card */
.namorados-preview .nvp-counter-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 8px;
  padding: 8px 10px;
  background: var(--nv-bg-card);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.namorados-preview .nvp-counter-icon {
  font-size: 14px;
  color: var(--nv-rose);
  flex-shrink: 0;
}
.namorados-preview .nvp-counter-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nv-text-soft);
  display: block;
  margin-bottom: 1px;
}
.namorados-preview .nvp-counter-value {
  font-family: "Dancing Script", cursive;
  font-size: 13px;
  font-weight: 600;
  color: var(--nv-rose-light);
  line-height: 1;
}

/* Message card */
.namorados-preview .nvp-message-card {
  margin: 0 14px 10px;
  padding: 10px 12px;
  background: var(--nv-bg-card);
  border: 1px solid var(--nv-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.namorados-preview .nvp-message-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nv-rose), transparent);
}
.namorados-preview .nvp-message-greeting,
.namorados-preview .nvp-message-text,
.namorados-preview .nvp-message-sig {
  position: relative;
  z-index: 1;
}
.namorados-preview .nvp-message-greeting {
  font-family: "Dancing Script", cursive;
  font-size: 13px;
  font-weight: 600;
  color: var(--nv-rose-light);
  margin: 0 0 4px;
}
.namorados-preview .nvp-message-text {
  font-size: 10px;
  line-height: 1.55;
  color: var(--nv-text-soft);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.namorados-preview .nvp-message-sig {
  font-family: "Dancing Script", cursive;
  font-size: 11px;
  color: var(--nv-rose);
  margin: 0;
}

/* Rosa image (atrás do texto da mensagem) */
.namorados-preview .nvp-message-rose {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}
.namorados-preview .nvp-message-rose img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(196,82,106,0.4));
}

/* Footer */
.namorados-preview .nvp-footer {
  text-align: center;
  padding: 8px 14px 14px;
  font-family: "Dancing Script", cursive;
  font-size: 11px;
  color: rgba(245,230,234,0.35);
}
