/* ===== Favorite Icon (default / inline in title & listing) ===== */
.sf-fav-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
    padding: 3px 10px 3px 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fafafa;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 12.5px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.sf-fav-icon svg {
    fill: none;
    stroke: #999;
    stroke-width: 1.6;
    transition: fill 0.2s ease, stroke 0.2s ease;
    flex-shrink: 0;
}
.sf-fav-text {
    color: #777;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.sf-fav-icon.sf-active {
    background: #fdeef0;
    border-color: #f3c6cc;
}
.sf-fav-icon.sf-active svg {
    fill: #e63950;
    stroke: #e63950;
}
.sf-fav-icon.sf-active .sf-fav-text {
    color: #e63950;
}
.sf-fav-icon:hover {
    transform: scale(1.05);
    border-color: #e63950;
}
.sf-fav-icon.sf-pulse {
    animation: sfPulse 0.3s ease;
}
@keyframes sfPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.sf-fav-icon.sf-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Large button: single post page, below the title ===== */
.sf-single-wrap {
    margin: 10px 0 22px;
}
.sf-fav-icon-large {
    padding: 10px 20px 10px 16px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    gap: 8px;
}
.sf-fav-icon-large svg {
    stroke-width: 1.8;
}
.sf-fav-icon-large:hover {
    box-shadow: 0 4px 14px rgba(230,57,80,0.18);
}

/* ===== Toast notification ===== */
.sf-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    max-width: 90vw;
    text-align: center;
}
.sf-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Favorites Dashboard Grid ===== */
.sf-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.sf-fav-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.sf-fav-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.sf-fav-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.sf-fav-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sf-fav-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}
.sf-fav-body h3 {
    margin: 6px 0;
    font-size: 17px;
    line-height: 1.3;
}
.sf-fav-body h3 a {
    text-decoration: none;
    color: #222;
}
.sf-fav-body p {
    font-size: 13.5px;
    color: #555;
    margin: 0 0 10px;
    flex: 1;
}
.sf-remove-label {
    font-size: 11px;
    color: #aaa;
    margin-left: 4px;
}
.sf-login-msg, .sf-empty-msg {
    padding: 16px;
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
}

/* ===== Responsive / Mobile ===== */
@media (max-width: 782px) {
    .sf-fav-icon-large {
        padding: 9px 16px 9px 14px;
        font-size: 14px;
    }
    .sf-toast {
        bottom: 16px;
        font-size: 13px;
        padding: 9px 16px;
    }
}
@media (max-width: 600px) {
    .sf-favorites-grid {
        grid-template-columns: 1fr;
    }
    .sf-fav-icon {
        padding: 4px 10px 4px 8px;
        font-size: 12px;
    }
    .sf-fav-thumb img {
        height: 180px;
    }
}
@media (max-width: 380px) {
    .sf-fav-icon-large .sf-fav-text {
        display: inline;
    }
    .sf-single-wrap {
        margin: 8px 0 18px;
    }
}
