/* Custom Like Button Styles */
.like-button-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.like-button-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.like-button-container:active {
    transform: translateY(0);
}

.like-button-container.liked {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.like-button-container.liked:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.like-icon {
    font-size: 24px;
    transition: all 0.3s ease;
    display: inline-block;
    color: white;
}

.like-button-container:hover .like-icon {
    transform: scale(1.2);
}

.like-button-container.liked .like-icon {
    animation: heartBeat 0.6s ease;
    color: white;
}

.like-text {
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.like-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

/* Heart beat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.4);
    }
    40% {
        transform: scale(1.2);
    }
    60% {
        transform: scale(1.4);
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Particle effect */
.like-button-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.like-button-container.animate::before {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Floating hearts animation on click */
.floating-heart {
    position: absolute;
    font-size: 20px;
    color: #f5576c;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Loading state */
.like-button-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.like-button-container.loading .like-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .like-button-container {
        padding: 10px 20px;
    }
    
    .like-icon {
        font-size: 20px;
    }
    
    .like-text {
        font-size: 14px;
    }
    
    .like-count {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* Disabled state for guests (optional) */
.like-button-container.guest-disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.like-button-container.guest-disabled:hover {
    transform: none;
}

/* Success message */
.like-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

