/* --- Link preview card styles --- */
.link-card {
  display: block;
  border: 1px solid #2d3748;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.8rem;
  background: #0f1116; /* slightly darker than main bg for separation */
  text-decoration: none;
  color: #e5e7eb;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); /* 🧠 subtle default depth */
}

.link-card:hover {
  border-color: #6366f1; /* indigo glow */
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(79, 70, 229, 0.35),
    0 0 6px rgba(79, 70, 229, 0.2);
  background-color: #131621; /* faint color shift on hover */
}

/* Responsive OG image */
.link-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1f2937;
  border-radius: 12px 12px 0 0;
  background: #1c1f24;
  transition: opacity 0.2s ease;
}

.link-card img:hover {
  opacity: 0.92;
}

/* Text block */
.link-card div {
  padding: 0.8rem 0.95rem;
}
.link-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #f9fafb;
  line-height: 1.3;
}
.link-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.4;
}
.card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.8rem;
  background: #0f1116;
}
.feed p {
  white-space: normal;
  line-height: 1.5;
}

