/*--------------------------------------------------------------
# H2H Dating – Like Button Styling
# Matches dark red / gold branding used across the site.
# Used in:
#   .h2h-like-wrap--card    → inside member directory cards
#   .h2h-like-wrap--profile → on the profile page below meta
--------------------------------------------------------------*/

/* ── 1. WRAPPER POSITIONING ── */
.h2h-like-wrap {
    display: inline-flex;
    align-items: center;
    margin: 8px 0;
}

.h2h-like-wrap--profile {
    margin-top: 12px;
}

/* ── 2. BUTTON BASE ── */
.h2h-like-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    border: 1px solid rgba(133, 17, 17, 0.5) !important;
    border-radius: 999px !important;
    background: rgba(20, 20, 22, 0.85) !important;
    color: #f3ead8 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

.h2h-like-btn:hover {
    background: rgba(133, 17, 17, 0.18) !important;
    border-color: rgba(197, 21, 21, 0.7) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.h2h-like-btn:active {
    transform: translateY(0);
}

.h2h-like-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(197, 21, 21, 0.25) !important;
}

/* ── 3. ICON ── */
.h2h-like-btn .h2h-like-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.h2h-like-btn .h2h-like-icon i {
    font-size: 1rem !important;
    color: #d6a84f !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.h2h-like-btn:hover .h2h-like-icon i {
    color: #f2c66d !important;
}

/* ── 4. TEXT ── */
.h2h-like-btn .h2h-like-text {
    letter-spacing: 0.02em;
}

/* ── 5. COUNT BADGE ── */
.h2h-like-btn .h2h-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3ead8;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Hide the count badge if 0 to keep the button compact */
.h2h-like-btn .h2h-like-count[data-count="0"] {
    display: none;
}

/* ── 6. LIKED STATE ── */
.h2h-like-btn.is-liked {
    background: linear-gradient(90deg, #7d0808 0%, #b70d0d 48%, #d31717 100%) !important;
    border-color: transparent !important;
    color: #fff4ea !important;
    box-shadow: 0 6px 16px rgba(128, 7, 7, 0.35) !important;
}

.h2h-like-btn.is-liked:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.h2h-like-btn.is-liked .h2h-like-icon i {
    color: #ffffff !important;
}

.h2h-like-btn.is-liked .h2h-like-count {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* ── 7. BUSY STATE (request in flight) ── */
.h2h-like-btn.is-busy {
    pointer-events: none;
    opacity: 0.65;
}

/* ── 8. PULSE ANIMATION on fresh like ── */
@keyframes h2h-like-pulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.12); }
    70%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.h2h-like-btn.h2h-pulse .h2h-like-icon i {
    animation: h2h-like-pulse 0.45s ease;
    transform-origin: center;
}

/* ── 9. CONTEXT TWEAKS ── */

/* Directory card: a touch smaller */
.h2h-like-btn--card {
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
}

.h2h-like-btn--card .h2h-like-icon i {
    font-size: 0.9rem !important;
}

/* Profile page: a touch larger and centered with the meta line */
.h2h-like-btn--profile {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
}
