/* Conteneur du bouton like */
.photo-like-container {
    display: inline-flex;
    align-items: center;
    margin: 8px 0;
}

/* Style du bouton like */
.like-button {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* États du bouton */
.like-button:hover {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.like-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.like-button.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-color: #ff5252;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.like-button.processing {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.like-button.processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-spin 1s linear infinite;
}

/* Icône du cœur */
.like-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.like-button:hover .like-icon {
    transform: scale(1.1);
}

.like-button.liked .like-icon {
    animation: heartBeat 0.6s ease-in-out;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Compteur de likes */
.like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.like-button.liked .like-count {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation d'apparition du like */
.like-button.just-liked {
    animation: likeSuccess 0.8s ease-out;
}

@keyframes likeSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Notifications */
.like-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.like-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.like-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.like-notification.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .like-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .like-icon {
        font-size: 14px;
    }
    
    .like-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}