/* ==========================================
   STYLES DU BOUTON LIKE - ONG
   ========================================== */

/* Section principale */
.like-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Bouton Like principal */
.like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* État par défaut (non liké) */
.like-button:not(.liked) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* État liké */
.like-button.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Effet de shimmer au survol */
.like-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.like-button:hover::before {
    left: 100%;
}

/* Survol du bouton */
.like-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.like-button.liked:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Clic actif */
.like-button:active:not(:disabled) {
    transform: translateY(0);
}

/* Icône du cœur */
.like-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.like-button:hover .like-icon {
    transform: scale(1.1);
}

/* Animation heartBeat lors du like */
.like-button.liked .like-icon {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

/* Compteur de likes */
.like-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Bouton désactivé */
.like-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animation du cœur flottant */
.heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: rgba(255, 255, 255, 0.3);
    animation: floatUp 1s ease forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes floatUp {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -100%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(1.5);
    }
}

/* ==========================================
   STYLES DES BOUTONS D'AUTHENTIFICATION
   ========================================== */

/* Invitation à se connecter */
.auth-prompt {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.auth-prompt i {
    font-size: 36px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.auth-prompt span {
    display: block;
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

/* Bouton Connexion */
.login-btn {
    background: linear-gradient(135deg, #00a8d6 0%, #0099c6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 168, 214, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #0099c6 0%, #0088b3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 214, 0.4);
}

/* Bouton Inscription */
.register-btn {
    background: white;
    color: #00a8d6;
    border: 2px solid #00a8d6;
}

.register-btn:hover {
    background: #00a8d6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 168, 214, 0.3);
}

/* ==========================================
   STATISTIQUES
   ========================================== */

/* Stats */
.like-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-left: auto;
}

.like-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.like-stats i {
    color: #00a8d6;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 576px) {
    .like-section {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .auth-btn {
        width: 100%;
        justify-content: center;
    }

    .like-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .like-stats {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
}
