/**
 * LoveMyPost - Sticky Like Button Styles
 */

.lmp-sticky-like {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lmp-sticky-like:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.lmp-sticky-like:active {
    transform: scale(0.98);
}

/* Heart Icon */
.lmp-heart-icon {
    width: 24px;
    height: 24px;
    fill: #e74c3c;
    transition: transform 0.3s ease;
}

.lmp-sticky-like:hover .lmp-heart-icon {
    transform: scale(1.1);
}

/* Vote Count */
.lmp-count {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
    transition: opacity 0.2s ease;
}

.lmp-count.lmp-error {
    color: #e74c3c;
    font-size: 14px;
}

/* Loading Spinner */
.lmp-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lmp-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #e74c3c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lmp-spin 0.8s linear infinite;
}

@keyframes lmp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading State */
.lmp-sticky-like.lmp-loading {
    cursor: wait;
    pointer-events: none;
}

.lmp-sticky-like.lmp-loading .lmp-heart-icon {
    opacity: 0;
}

.lmp-sticky-like.lmp-loading .lmp-count {
    opacity: 0;
}

.lmp-sticky-like.lmp-loading .lmp-spinner {
    opacity: 1;
}

/* Voted State */
.lmp-sticky-like.lmp-voted {
    cursor: default;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lmp-sticky-like.lmp-voted .lmp-heart-icon {
    fill: #e74c3c;
    transform: scale(1);
}

.lmp-sticky-like.lmp-voted:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive - Hide on small screens */
@media (max-width: 768px) {
    .lmp-sticky-like {
        display: none;
    }
}
