/* =========================================================
   Discovery Panel — Like-Button (Heart-Icon, 44px Tap-Target)
   ========================================================= */

/* ── Button-Grundstruktur ─────────────────────────────────── */

.dp-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 22px;
    background: transparent;
    color: #9ca3af;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .1s;
    font-family: inherit;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.dp-like-btn:hover {
    color: #e83d9f;
    border-color: #e83d9f;
    background: rgba(232, 61, 159, .06);
}

.dp-like-btn:active {
    transform: scale(.94);
}

/* ── Geliked-Zustand ──────────────────────────────────────── */

.dp-like-btn--liked {
    color: #e83d9f;
    border-color: #e83d9f;
    background: rgba(232, 61, 159, .08);
}

.dp-like-btn--liked:hover {
    background: rgba(232, 61, 159, .14);
}

/* ── SVG-Herz ─────────────────────────────────────────────── */

.dp-like-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Outline: sichtbar im Ruhezustand */
.dp-like-btn .dp-like-outline {
    display: block;
}
.dp-like-btn .dp-like-filled {
    display: none;
}

/* Filled: sichtbar wenn geliked */
.dp-like-btn--liked .dp-like-outline {
    display: none;
}
.dp-like-btn--liked .dp-like-filled {
    display: block;
}

/* ── Like-Count ───────────────────────────────────────────── */

.dp-like-count {
    min-width: 14px;
    text-align: left;
    /* Verhindert Layout-Sprünge bei Zahlenwechsel */
    font-variant-numeric: tabular-nums;
}

/* ── Pop-Animation beim Liken ─────────────────────────────── */

@keyframes dp-like-pop {
    0%   { transform: scale(1);    }
    35%  { transform: scale(1.4);  }
    65%  { transform: scale(0.88); }
    100% { transform: scale(1);    }
}

.dp-like-btn--pop .dp-like-icon {
    animation: dp-like-pop .32s cubic-bezier(.36,.07,.19,.97);
}

/* ── Compact-Variante (für enge Galerie-Karten) ───────────── */

.dp-like-btn--compact {
    padding: 6px 10px;
    font-size: .75rem;
    gap: 4px;
}

.dp-like-btn--compact .dp-like-icon {
    width: 17px;
    height: 17px;
}

/* ── Lade-Zustand ─────────────────────────────────────────── */

.dp-like-btn--loading {
    opacity: .6;
    pointer-events: none;
}

/* ── Tooltip (Login-Hinweis für Gäste) ───────────────────── */

.dp-like-tooltip-wrap {
    position: relative;
    display: inline-block;
}

.dp-like-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 100;
}

.dp-like-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.dp-like-tooltip-wrap:hover .dp-like-tooltip {
    opacity: 1;
}

/* ── Dark Mode (html.dp-dark) ─────────────────────────────── */

html.dp-dark .dp-like-btn {
    border-color: #42286a !important;
    color: #7060a0 !important;
    background: transparent !important;
}

html.dp-dark .dp-like-btn:hover {
    color: #e83d9f !important;
    border-color: #e83d9f !important;
    background: rgba(232, 61, 159, .08) !important;
}

html.dp-dark .dp-like-btn--liked {
    color: #e83d9f !important;
    border-color: #e83d9f !important;
    background: rgba(232, 61, 159, .12) !important;
}

html.dp-dark .dp-like-btn--liked:hover {
    background: rgba(232, 61, 159, .2) !important;
}

html.dp-dark .dp-like-tooltip {
    background: #f5f0fa !important;
    color: #0f0818 !important;
}

html.dp-dark .dp-like-tooltip::after {
    border-top-color: #f5f0fa !important;
}
