/* ============================================================================
   ikh-love.css   (wwwroot/css/ikh-love.css)   NEW — Phase 5
   ----------------------------------------------------------------------------
   Styling for the site-wide property "love" button (ikh-love.js). Standalone
   (the public site doesn't load account-hub.css). Brand palette: charcoal /
   sunset-orange / cyan, with a warm red heart when loved.

   Default placement is a floating top-right pill over a card cover — drop it
   inside a position:relative cover element. Add class "is-static" for an inline
   heart (e.g. on a listing detail page).

   Add to _Layout (after ikh-signin-modal.js so window.IkhayalamiAuth exists):
       <link rel="stylesheet" href="~/css/ikh-love.css" asp-append-version="true" />
       <script src="~/js/ikh-love.js" asp-append-version="true" defer></script>
   ============================================================================ */

.ikh-love-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(14, 14, 17, 0.18);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.ikh-love-btn:hover { transform: scale(1.08); background: #fff; }
.ikh-love-btn:active { transform: scale(0.96); }
.ikh-love-btn:focus-visible { outline: 2px solid #F58220; outline-offset: 2px; }

.ikh-love-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform .2s ease, fill .18s ease, stroke .18s ease;
}
/* Outline (not saved) */
.ikh-love-btn[data-loved="false"] svg { fill: none; stroke: #6C757D; stroke-width: 1.8; }
.ikh-love-btn[data-loved="false"]:hover svg { stroke: #e23744; }
/* Filled (saved) */
.ikh-love-btn[data-loved="true"] svg { fill: #e23744; stroke: #e23744; stroke-width: 1.8; }

/* Busy / in-flight */
.ikh-love-btn.is-busy { pointer-events: none; opacity: 0.7; }

/* Pop animation on save */
@keyframes ikhLovePop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
.ikh-love-btn.just-loved svg { animation: ikhLovePop .34s ease; }

/* Inline (non-floating) variant for detail pages / lists */
.ikh-love-btn.is-static {
    position: static;
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 8px 14px;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(14, 14, 17, 0.12);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #3a3d44;
}
.ikh-love-btn.is-static::after { content: "Save"; }
.ikh-love-btn.is-static[data-loved="true"]::after { content: "Saved"; color: #e23744; }
.ikh-love-btn.is-static:hover { border-color: rgba(226, 55, 68, 0.4); }

@media (prefers-reduced-motion: reduce) {
    .ikh-love-btn, .ikh-love-btn svg { transition: none; }
    .ikh-love-btn.just-loved svg { animation: none; }
}
