/* ============================================================
   DateMate USA — assets/css/style.css
   Light theme, rose/pink dating accents.
   Includes the FlexMediaX locker width rule (same as Movie Studio):
   the locker box is WIDE (560px) by default.
   ============================================================ */

/* ---------- FlexMediaX locker: wide box ---------- */
#flx-box { max-width: 560px !important; }

/* ---------- Top nav ---------- */
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.55rem; border-radius: 0.6rem;
  color: #4b5563; font-weight: 500; white-space: nowrap;
}
.nav-link:hover { background: #fff1f2; color: #e11d48; }

/* ---------- Hero slider (landing page) ---------- */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dot { width: 10px; height: 10px; border-radius: 9999px; background: rgba(255,255,255,.55); cursor: pointer; border: none; padding: 0; }
.hero-dot.active { background: #fff; width: 26px; border-radius: 9999px; }

/* ---------- Facebook-style post cards ---------- */
.fb-card { background: #fff; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(0,0,0,.08); overflow: hidden; }
.fb-card-head { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.8rem 1rem 0.5rem; }
.fb-avatar { width: 42px; height: 42px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.fb-name { font-weight: 600; color: #111827; line-height: 1.2; }
.fb-name:hover { text-decoration: underline; }
.fb-time { font-size: 12px; color: #6b7280; }
.fb-body { padding: 0.25rem 1rem 0.75rem; font-size: 15px; line-height: 1.55; color: #1f2937; white-space: pre-wrap; word-break: break-word; }
.fb-photo { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.fb-counts { display: flex; justify-content: space-between; padding: 0.5rem 1rem; font-size: 13px; color: #6b7280; border-top: 1px solid #f3f4f6; }
.fb-actions { display: flex; border-top: 1px solid #e5e7eb; }
.fb-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.55rem 0; font-size: 14px; font-weight: 600; color: #4b5563;
  background: none; border: none; cursor: pointer;
}
.fb-action:hover { background: #f9fafb; }
.fb-action.liked { color: #e11d48; }
.fb-comments { border-top: 1px solid #f3f4f6; padding: 0.6rem 1rem 0.9rem; }
.fb-comment { display: flex; gap: 0.5rem; margin-top: 0.55rem; }
.fb-comment-bubble { background: #f0f2f5; border-radius: 1rem; padding: 0.45rem 0.75rem; font-size: 14px; max-width: 100%; }
.fb-comment-input {
  flex: 1; background: #f0f2f5; border: none; border-radius: 9999px;
  padding: 0.5rem 0.9rem; font-size: 14px; outline: none;
}
.fb-comment-input:focus { box-shadow: 0 0 0 2px #fda4af; background: #fff; }

/* ---------- Member cards (Discover) ---------- */
.member-card { transition: transform .15s ease, box-shadow .15s ease; }
.member-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.member-photo { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; }
.online-dot { width: 12px; height: 12px; border-radius: 9999px; background: #22c55e; border: 2px solid #fff; }

/* ---------- TikTok-style video scroll ---------- */
.tiktok-wrap {
  height: calc(100dvh - 3.5rem); /* full screen under the 56px top bar */
  overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
  background: #000;
}
.tiktok-wrap::-webkit-scrollbar { display: none; }
.tiktok-slide {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; background: #000;
}
.tiktok-video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) {
  .tiktok-video { width: auto; max-width: 460px; aspect-ratio: 9/16; border-radius: 12px; }
  .tiktok-slide { padding: 10px 0; }
}
.tiktok-rail {
  position: absolute; right: 10px; bottom: 96px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
@media (min-width: 640px) { .tiktok-rail { right: calc(50% - 230px + 12px); } }
.tiktok-rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff; background: none; border: none; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.tiktok-rail-btn .rail-circle {
  width: 46px; height: 46px; border-radius: 9999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.tiktok-rail-btn.liked .rail-circle { background: #e11d48; }
.tiktok-rail-btn .rail-count { font-size: 12px; font-weight: 600; }
.tiktok-rail-avatar { width: 46px; height: 46px; border-radius: 9999px; object-fit: cover; border: 2px solid #fff; }
.tiktok-info {
  position: absolute; left: 12px; right: 76px; bottom: 18px; z-index: 10; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.tiktok-info .tt-user { font-weight: 700; font-size: 16px; }
.tiktok-info .tt-caption { font-size: 14px; margin-top: 4px; line-height: 1.4; }
.tiktok-lock {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; padding: 20px;
}
.tiktok-playhint {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  pointer-events: none; color: rgba(255,255,255,.85);
}
.tiktok-comments {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-radius: 16px 16px 0 0; max-height: 70vh;
  display: flex; flex-direction: column; box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
@media (min-width: 640px) {
  .tiktok-comments { left: 50%; transform: translateX(-50%); width: 460px; }
}
@keyframes heartPop {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1.25); opacity: .95; }
  100% { transform: scale(1.6); opacity: 0; }
}
.heart-pop { animation: heartPop .7s ease forwards; }

/* ---------- Chat ---------- */
.chat-bubble { max-width: 75%; padding: 0.55rem 0.85rem; border-radius: 1.1rem; font-size: 15px; line-height: 1.45; word-break: break-word; }
.chat-mine { background: #e11d48; color: #fff; border-bottom-right-radius: 0.25rem; }
.chat-theirs { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 0.25rem; }

/* ---------- Toast ---------- */
#dm-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 100; background: #111827; color: #fff; padding: 10px 18px;
  border-radius: 9999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); display: none; max-width: 92vw; text-align: center;
}
