/* ========================================
 * PAGE-ARTICLE-ACTIONS-BAR.CSS
 * Barre d'actions style Instagram pour articles
 * Basé sur page-theme-actions-bar.css
 * ======================================== */

/* Container principal - Aucun background ni shadow */
.article-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 4px 6px 4px;
    margin-top: 0;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Groupes gauche et droite */
.article-actions-left,
.article-actions-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Alignement vertical spécifique pour les icônes */
.article-actions-left .article-action-btn,
.article-actions-right .article-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-actions-left .article-action-btn i,
.article-actions-right .article-action-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    line-height: 1;
}

/* Bouton d'action */
.article-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 8px 6px;
    cursor: pointer;
    color: var(--text-color, #262626);
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    overflow: visible;
}

.article-action-btn:hover > i {
    opacity: 0.7;
}

.article-action-btn:active {
    transform: scale(0.95);
}

/* Icônes - taille uniforme */
.article-action-btn i {
    font-size: 1.5rem;
    width: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* ======================================
 * ÉTATS SPÉCIFIQUES
 * ====================================== */

/* Like actif (cœur rouge) */
.article-action-like.active i {
    color: #ed4956 !important;
}

/* Animation des boutons */
@keyframes articleActionAnimation {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.article-action-btn.animating i {
    animation: articleActionAnimation 0.4s ease-in-out;
}

/* Masquer l'icône pendant le chargement */
.article-action-btn.loading i {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.article-action-btn:not(.loading) i {
    opacity: 1;
}

/* État disabled pendant le chargement */
.article-action-btn.loading {
    pointer-events: none;
}

/* Partage - icône couleur par défaut */
.article-action-share i {
    color: inherit;
}

/* ======================================
 * TOOLTIPS SIMPLES POUR LES BOUTONS D'ACTION
 * ====================================== */

.article-action-btn .tooltip-text {
    position: absolute;
    bottom: calc(100% + 12px);
    left: calc(6px + 0.75rem);
    transform: translateX(-50%);
    background-color: #2a3334;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid var(--savoor-coral, #FF6B6B);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    visibility: hidden;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Flèche du tooltip */
.article-action-btn .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--savoor-coral, #FF6B6B);
}

/* Affichage au hover - géré par JavaScript */
.article-action-btn .tooltip-text.visible {
    visibility: visible;
}

/* Mode clair pour les tooltips simples */
body.light-mode .article-action-btn .tooltip-text {
    background-color: #2c3e50;
}

/* ======================================
 * MODE SOMBRE
 * ====================================== */
.dark-mode .article-actions-bar {
    background: transparent;
}

.dark-mode .article-action-btn {
    color: var(--text-color, #f5f5f5);
}

.dark-mode .article-action-like.active i {
    color: #ed4956;
}

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

@media screen and (max-width: 768px) {
    .article-actions-bar {
        padding: 10px 2px;
    }
    
    .article-actions-left,
    .article-actions-right {
        gap: 16px;
    }
    
    .article-action-btn i {
        font-size: 1.4rem;
    }
    
    /* Masquer les tooltips simples sur tablette/mobile */
    .article-action-btn .tooltip-text {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .article-actions-bar {
        padding: 10px 0;
    }
    
    .article-actions-left,
    .article-actions-right {
        gap: 12px;
    }
    
    .article-action-btn {
        gap: 5px;
        padding: 6px 2px;
    }
    
    .article-action-btn i {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 320px) {
    .article-actions-left,
    .article-actions-right {
        gap: 8px;
    }
    
    .article-action-btn i {
        font-size: 1.2rem;
    }
}
