/* ============================================================
   dateyourfriends.xyz — shared styles
   ============================================================ */

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

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #FCF0F0;
  --warm:    #f9e4e4;
  --sand:    #f0d0d0;
  --caramel: #E06666;
  --brown:   #741B47;
  --dark:    #741B47;
  --text:    #3d1a2a;
  --muted:   #a0667a;
  --shadow:  rgba(116, 27, 71, 0.10);
  --radius:  18px;
  --max-w:   500px;
  --serif:   'Playfair Display', Georgia, serif;
  --body:    'Lora', Georgia, serif;
}

html { font-size: 16px; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Logo SVG ─────────────────────────────────────────────── */
.logo-svg {
  width: 48px; height: 48px;
  display: block;
}

/* ── Profile interstitial overlay ─────────────────────────── */
#profile-interstitial {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#profile-interstitial.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.profile-interstitial-card {
  max-width: 360px; width: 100%;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}
.pi-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 2rem;
}
.pi-logo-img { width: 36px; height: 36px; }
.pi-site-name {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--dark); letter-spacing: -0.02em;
}
.pi-tagline {
  font-family: var(--body); font-style: italic;
  font-size: 1.05rem; color: var(--text);
  line-height: 1.75; margin-bottom: 2rem;
  padding: 0 0.25rem;
}


#interstitial {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#interstitial.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.interstitial-card {
  max-width: 380px; width: 100%;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}

.interstitial-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 2rem;
}

.interstitial-logo .site-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.interstitial-card h1 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.interstitial-card .tagline {
  font-family: var(--body);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--caramel);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  border: none; cursor: pointer;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(224,102,102,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(116,27,71,0.35);
}
.btn-primary:active { transform: translateY(0); }

/* ── Interest interstitial (modal) ──────────────────────────── */
#interest-modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(116, 27, 71, 0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#interest-modal.visible { opacity: 1; visibility: visible; }

.interest-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(116,27,71,0.25);
  animation: scaleIn 0.3s ease both;
}
.interest-card .heart-icon {
  font-size: 2.5rem; margin-bottom: 1rem;
  display: block;
}
.interest-card h2 {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.75rem;
}
.interest-card p {
  font-style: italic; color: var(--muted);
  font-size: 0.975rem; line-height: 1.7;
  margin-bottom: 1.75rem;
}
.btn-close-modal {
  background: var(--warm); border: none; cursor: pointer;
  color: var(--muted); font-family: var(--body); font-size: 0.9rem;
  padding: 0.5rem 1.5rem; border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}
.btn-close-modal:hover { background: var(--sand); color: var(--brown); }

/* ── Lightbox ─────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(183, 183, 183, 0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}
#lightbox.visible { opacity: 1; visibility: visible; }
#lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  animation: scaleIn 0.25s ease both;
}
#lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  color: rgba(255,255,255,0.8); font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }

/* ── Profile wrapper ──────────────────────────────────────── */
.profile-page {
  min-height: 100vh;
}

.profile-scroll-container {
  max-width: var(--max-w);
  margin: 0 auto;
  /* scroll-snap handled per section for better UX */
}

/* ── Common section/card styles ───────────────────────────── */
.profile-section {
  padding: 1.25rem 1.25rem 2rem;
  scroll-snap-align: start;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow), 0 0 0 1px rgba(224,102,102,0.08);
  margin-bottom: 1rem;
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

/* ── Header photo ─────────────────────────────────────────── */
.header-card .header-name {
  padding: 1.1rem 1.25rem 0.75rem;
}
.header-card .header-name h1 {
  font-family: var(--serif);
  font-size: 2.1rem; font-weight: 700;
  color: var(--dark); line-height: 1.1;
}
.header-card .header-photo-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
}
.header-card .header-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.header-card .header-details {
  padding: 0.85rem 1.25rem 1.25rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.header-card .detail-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; color: var(--muted);
}
.header-card .detail-item i { color: var(--caramel); font-size: 0.85rem; }

/* ── Picture block ────────────────────────────────────────── */
.picture-block .picture-title {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 600;
  color: var(--dark); margin-bottom: 0.65rem;
}
.picture-block .photo-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.picture-block .photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.picture-block .photo-wrap:hover img { transform: scale(1.02); }
.picture-block .picture-caption {
  font-style: italic; color: var(--muted);
  font-size: 0.9rem; margin-top: 0.65rem; line-height: 1.5;
}

/* ── Carousels (shared) ───────────────────────────────────── */
.carousel-container {
  position: relative;
}
.carousel-track {
  display: flex; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* Photo carousel items */
.carousel-track .photo-item {
  flex: 0 0 calc(80%);
  max-width: 280px;
  aspect-ratio: 1/1;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}
.carousel-track .photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.carousel-track .photo-item:hover img { transform: scale(1.03); }

/* Text carousel items */
.carousel-track .text-card {
  flex: 0 0 75%;
  scroll-snap-align: start;
  background: var(--warm);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--body);
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.6;
}

/* Text+icon carousel items */
.carousel-track .icon-text-card {
  flex: 0 0 65%;
  scroll-snap-align: start;
  background: var(--warm);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.icon-text-card .card-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--sand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--caramel); font-size: 1rem;
}
.icon-text-card .card-text {
  font-size: 0.9rem; color: var(--text); line-height: 1.4;
}

/* Video carousel */
.carousel-track .video-item {
  flex: 0 0 80%; max-width: 280px;
  aspect-ratio: 1/1; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  background: #000; cursor: pointer;
  position: relative;
}
.video-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-item .play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(116,27,71,0.35);
  transition: background 0.2s;
}
.video-item .play-btn i {
  color: #fff; font-size: 2.25rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.video-item.playing .play-btn { display: none; }

/* Carousel dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 5px;
  margin-top: 0.75rem;
}
.carousel-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand); transition: background 0.2s;
  cursor: pointer; border: none; padding: 0; flex-shrink: 0;
}
.carousel-dots .dot.active { background: var(--caramel); }

/* Desktop carousel arrows */
.carousel-wrapper {
  position: relative;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: #fff; border: none; cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 10px var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: var(--brown); font-size: 0.85rem;
  opacity: 0; transition: opacity 0.2s;
  z-index: 10;
}
.carousel-wrapper:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.prev { left: -12px; }
.carousel-arrow.next { right: -12px; }

/* ── Text Plus block ──────────────────────────────────────── */
.text-plus-block .item-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.3rem;
}
.text-plus-block .item-list + .item-list {
  margin-top: 1.5rem;
}
.text-plus-block .item-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.text-plus-block .item-list li i {
  color: var(--caramel); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0;
}
.text-plus-block .item-list li span { font-size: 0.95rem; line-height: 1.45; }
.text-plus-block .prose {
  font-size: 0.975rem; color: var(--text); line-height: 1.7;
  margin-top: 0.75rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.profile-footer {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.btn-interested {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--caramel); color: #fff;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  border: none; cursor: pointer;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(224,102,102,0.35);
  transition: background 0.2s, transform 0.15s;
}
.btn-interested:hover { background: var(--brown); transform: translateY(-1px); }

.footer-meta {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.footer-meta a {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--caramel); }
.footer-meta .footer-logo { width: 18px; height: 18px; }

/* ── Landing page ─────────────────────────────────────────── */
.landing-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--cream);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Scroll snap on profile pages ────────────────────────── */
.profile-scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Each section snaps at its top edge; natural content height, no forced full-screen */
.profile-section {
  scroll-snap-align: start;
  /* Add bottom padding so the next section peeks ~80px below the fold */
  padding-bottom: 2rem;
}

/* Let the footer snap into view at its top edge */
.profile-footer {
  scroll-snap-align: start;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 540px) {
  :root { --radius: 14px; }
  .header-card .header-name h1 { font-size: 1.75rem; }
}
