/**
 * Styles pour les réponses dans le forum
 * 
 * @package EDA_Workgroup
 * @version 1.1.0
 */

/* Messages principaux */
.eda-forum-main-message {
    margin-bottom: 25px;
    border-left: 3px solid #0073aa;
}

/* Réponses - Indentation progressive */
.eda-forum-reply {
    margin-left: 30px;
    margin-top: 15px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.eda-forum-depth-1 {
    margin-left: 30px;
}

.eda-forum-depth-2 {
    margin-left: 60px;
}

.eda-forum-depth-3 {
    margin-left: 90px;
}

.eda-forum-depth-4 {
    margin-left: 120px;
}

.eda-forum-depth-5 {
    margin-left: 150px;
}

/* Container des réponses */
.eda-forum-replies {
    margin-top: 10px;
}

/* Actions du message (Réactions, Répondre, compteur) */
.eda-workgroup-message-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

/* Bouton Répondre */
.eda-forum-reply-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}

.eda-forum-reply-button:hover {
    color: #005177;
    text-decoration: underline;
}

.eda-forum-reply-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Compteur de réponses */
.eda-forum-reply-count {
    font-size: 13px;
    color: #666;
}

/* Formulaire de réponse */
.eda-forum-reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.eda-forum-reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.eda-forum-reply-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Boutons petits */
.eda-workgroup-button-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Highlight temporaire */
.eda-forum-highlight {
    animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
    0% {
        background-color: #fff3cd;
    }
    100% {
        background-color: transparent;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .eda-forum-reply {
        margin-left: 15px;
        padding-left: 10px;
    }
    
    .eda-forum-depth-1 {
        margin-left: 15px;
    }
    
    .eda-forum-depth-2 {
        margin-left: 30px;
    }
    
    .eda-forum-depth-3 {
        margin-left: 45px;
    }
    
    .eda-forum-depth-4,
    .eda-forum-depth-5 {
        margin-left: 60px;
    }
}

/* Amélioration de la lisibilité */
.eda-workgroup-forum-message {
    transition: background-color 0.2s;
}

.eda-workgroup-forum-message:hover {
    background-color: #fafafa;
}

/* Lien bouton */
.eda-workgroup-button-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}


/* ========================================
   RÉACTIONS
   ======================================== */

.eda-forum-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Réactions maintenant dans .eda-workgroup-message-actions */
}

.eda-forum-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    min-width: 40px;
    justify-content: center;
}

.eda-forum-reaction-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: currentColor;
}

.eda-forum-reaction-btn.active {
    background: rgba(0,0,0,0.05);
    border-color: currentColor;
    border-width: 2px;
    font-weight: bold;
}

.eda-reaction-icon {
    font-size: 18px;
    line-height: 1;
}

.eda-reaction-count {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.eda-forum-reaction-btn.active .eda-reaction-count {
    color: inherit;
}

/* Animation au clic */
@keyframes reaction-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.eda-forum-reaction-btn.reacting {
    animation: reaction-pop 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .eda-forum-reactions {
        flex-wrap: wrap;
    }
    
    .eda-forum-reaction-btn {
        padding: 6px 12px;
    }
}
