/* ═══════════════════════════════════════════
   Link Preview Card — Premium Styles
   Social Media URL Unfurling System
   ═══════════════════════════════════════════ */

/* ── Shimmer Loading Skeleton ── */
.wo-lp-shimmer {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  padding: 14px;
  margin: 10px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.wo-lp-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.15) 50%, transparent 75%);
  animation: woLpShimmer 1.5s infinite;
}
@keyframes woLpShimmer {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}
.wo-lp-shimmer-thumb {
  width: 80px; height: 80px;
  border-radius: 10px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.wo-lp-shimmer-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wo-lp-shimmer-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.08);
}
.wo-lp-shimmer-line:nth-child(1) { width: 70%; }
.wo-lp-shimmer-line:nth-child(2) { width: 100%; }
.wo-lp-shimmer-line:nth-child(3) { width: 40%; }

/* ── Main Preview Card ── */
.wo-lp-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  animation: woLpSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.wo-lp-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
@keyframes woLpSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.wo-lp-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.15s;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}
.wo-lp-close:hover {
  background: rgba(255,50,50,0.8);
  transform: scale(1.1);
}
.wo-lp-close svg {
  width: 14px; height: 14px;
  fill: #fff;
}

/* Card Body Layout */
.wo-lp-body {
  display: flex;
  gap: 0;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
.wo-lp-body:hover {
  text-decoration: none !important;
}

/* Thumbnail */
.wo-lp-thumb {
  width: 120px;
  min-height: 100px;
  background: #f0f0f3;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.wo-lp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wo-lp-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* Content */
.wo-lp-content {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.wo-lp-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.wo-lp-desc {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.wo-lp-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.wo-lp-source-icon {
  width: 16px; height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}
.wo-lp-source-icon svg {
  width: 16px; height: 16px;
}
.wo-lp-source-domain {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Platform Accent Borders ── */
.wo-lp-card[data-platform="youtube"]  { border-left: 3px solid #FF0000; }
.wo-lp-card[data-platform="facebook"] { border-left: 3px solid #1877F2; }
.wo-lp-card[data-platform="instagram"]{ border-left: 3px solid #E4405F; }
.wo-lp-card[data-platform="tiktok"]   { border-left: 3px solid #00f2ea; }
.wo-lp-card[data-platform="twitter"]  { border-left: 3px solid #1DA1F2; }

/* Platform source colors */
.wo-lp-card[data-platform="youtube"]  .wo-lp-source-domain { color: #FF0000; }
.wo-lp-card[data-platform="facebook"] .wo-lp-source-domain { color: #1877F2; }
.wo-lp-card[data-platform="instagram"].wo-lp-source-domain { color: #E4405F; }
.wo-lp-card[data-platform="tiktok"]   .wo-lp-source-domain { color: #00f2ea; }
.wo-lp-card[data-platform="twitter"]  .wo-lp-source-domain { color: #1DA1F2; }

/* ── Compact Mode (comments, messages) ── */
.wo-lp-card.wo-lp-compact {
  border-radius: 10px;
  margin: 6px 0;
}
.wo-lp-compact .wo-lp-thumb {
  width: 72px;
  min-height: 72px;
}
.wo-lp-compact .wo-lp-content {
  padding: 10px 12px;
}
.wo-lp-compact .wo-lp-title {
  font-size: 13px;
  -webkit-line-clamp: 1;
}
.wo-lp-compact .wo-lp-desc {
  font-size: 12px;
  -webkit-line-clamp: 1;
}
.wo-lp-compact .wo-lp-close {
  width: 22px; height: 22px;
  top: 6px; right: 6px;
}
.wo-lp-compact .wo-lp-close svg {
  width: 11px; height: 11px;
}

/* Compact shimmer */
.wo-lp-shimmer.wo-lp-compact {
  padding: 10px;
}
.wo-lp-compact .wo-lp-shimmer-thumb {
  width: 56px; height: 56px;
}

/* ── Story Mode ── */
.wo-lp-card.wo-lp-story {
  margin: 8px 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Dark Mode ── */
body[data-theme="dark"] .wo-lp-card,
.night-mode .wo-lp-card,
[night-mode] .wo-lp-card,
.wo_dark_mode .wo-lp-card {
  background: #1e1e2e;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
body[data-theme="dark"] .wo-lp-title,
.night-mode .wo-lp-title,
[night-mode] .wo-lp-title,
.wo_dark_mode .wo-lp-title {
  color: #e0e0e0;
}
body[data-theme="dark"] .wo-lp-desc,
.night-mode .wo-lp-desc,
[night-mode] .wo-lp-desc,
.wo_dark_mode .wo-lp-desc {
  color: #9ca3af;
}
body[data-theme="dark"] .wo-lp-thumb,
.night-mode .wo-lp-thumb,
[night-mode] .wo-lp-thumb,
.wo_dark_mode .wo-lp-thumb {
  background: #2a2a3e;
}
body[data-theme="dark"] .wo-lp-shimmer,
.night-mode .wo-lp-shimmer,
[night-mode] .wo-lp-shimmer,
.wo_dark_mode .wo-lp-shimmer {
  background: rgba(255,255,255,0.04);
}
body[data-theme="dark"] .wo-lp-shimmer-thumb,
body[data-theme="dark"] .wo-lp-shimmer-line,
.night-mode .wo-lp-shimmer-thumb,
.night-mode .wo-lp-shimmer-line,
[night-mode] .wo-lp-shimmer-thumb,
[night-mode] .wo-lp-shimmer-line,
.wo_dark_mode .wo-lp-shimmer-thumb,
.wo_dark_mode .wo-lp-shimmer-line {
  background: rgba(255,255,255,0.08);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .wo-lp-thumb {
    width: 90px;
    min-height: 80px;
  }
  .wo-lp-content {
    padding: 10px 12px;
  }
  .wo-lp-title { font-size: 13px; }
  .wo-lp-compact .wo-lp-thumb {
    width: 60px;
    min-height: 60px;
  }
}

/* ── Message area specifics ── */
.tag_write_msg .wo-lp-card {
  margin: 6px 0;
  border-radius: 10px;
}

/* ── Comment area specifics ── */
.post-commet-textarea .wo-lp-card {
  margin: 4px 0;
}

/* ── Publisher box specifics ── */
.publisher-box .wo-lp-card,
#results .wo-lp-card {
  border-radius: 12px;
}
