/* ============================================================
   Link Preview Cards for Elementor — cards.css  v1.1
   ============================================================ */

/* ── Base card ─────────────────────────────────────────────── */
.lpc-wrap {
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
}

.lpc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              box-shadow .22s ease;
  will-change: transform;
}

.lpc-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 56px rgba(0,0,0,.15);
  text-decoration: none;
  color: inherit;
}

/* ── Image wrapper ─────────────────────────────────────────── */
.lpc-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.lpc-card--vertical .lpc-img-wrap,
.lpc-card--overlay  .lpc-img-wrap {
  padding-top: 56%;
}

.lpc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.lpc-card:hover .lpc-img {
  transform: scale(1.04);
}

/* ── Overlay style ─────────────────────────────────────────── */
.lpc-card--overlay {
  position: relative;
}

.lpc-card--overlay .lpc-img-wrap {
  padding-top: 100%;
}

.lpc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,.78) 100%
  );
}

.lpc-card--overlay .lpc-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 24px 20px;
  background: none;
}
.lpc-card--overlay .lpc-title { color: #fff; }
.lpc-card--overlay .lpc-desc  { color: rgba(255,255,255,.82); }
.lpc-card--overlay .lpc-site-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}

/* ── Horizontal style ──────────────────────────────────────── */
.lpc-card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.lpc-card--horizontal .lpc-img-wrap {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  padding-top: 0 !important;
  min-height: 200px;
}
.lpc-card--horizontal .lpc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Body ──────────────────────────────────────────────────── */
.lpc-body {
  padding: 20px 24px 22px;
}

/* ── Site badge  (defaults match the teal seen in screenshot) ─ */
.lpc-site-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  background: rgba(0,194,178,.15);
  color: #00a896;
}

/* ── Title ─────────────────────────────────────────────────── */
.lpc-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Description ───────────────────────────────────────────── */
.lpc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA button  (defaults: teal/cyan to match screenshot) ──── */
.lpc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: #00BCD4;
  padding: 8px 18px;
  border-radius: 100px;
  transition: background .18s ease, filter .18s ease, gap .18s ease;
}

.lpc-card:hover .lpc-btn {
  filter: brightness(1.1);
  gap: 10px;
}

/* ── Placeholder (Elementor editor) ───────────────────────── */
.lpc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  border: 2px dashed #d0d0d0;
  border-radius: 16px;
  background: #fafafa;
  text-align: center;
  color: #888;
  font-size: 14px;
}
.lpc-placeholder span { font-size: 32px; }
.lpc-placeholder p    { margin: 0; }
.lpc-placeholder.lpc-error       { border-color: #fca5a5; background: #fff5f5; color: #b91c1c; }
.lpc-placeholder.lpc-editor-note { border-color: #93c5fd; background: #eff6ff; color: #1e40af; }
.lpc-placeholder code { font-size: 12px; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lpc-card--horizontal             { flex-direction: column; }
  .lpc-card--horizontal .lpc-img-wrap {
    width: 100%;
    min-height: 200px;
    padding-top: 56% !important;
  }
  .lpc-title { font-size: 16px; }
  .lpc-body  { padding: 16px 18px 18px; }
}
