/* Styles pour le menu d'actions des publications */
.post-menu {
    position: relative;
    margin-left: auto;
}

.menu-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 100;
    display: none;
}

.post-menu-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.menu-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.edit-btn:hover {
    color: #2196F3;
}

.menu-item.delete-btn:hover {
    color: #F44336;
}

/* Modal de confirmation de suppression */
.delete-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cancel-btn {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #d0d0d0;
}

.confirm-btn {
    background-color: #F44336;
    color: white;
}

.confirm-btn:hover {
    background-color: #d32f2f;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mode sombre */
[data-theme="dark"] .post-menu-dropdown {
    background-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .menu-item {
    color: #f0f0f0;
}

[data-theme="dark"] .menu-item:hover {
    background-color: #444;
}

[data-theme="dark"] .modal-content {
    background-color: #333;
}

[data-theme="dark"] .modal-content h3 {
    color: #f0f0f0;
}

[data-theme="dark"] .modal-content p {
    color: #ccc;
}

[data-theme="dark"] .cancel-btn {
    background-color: #555;
    color: #f0f0f0;
}

[data-theme="dark"] .cancel-btn:hover {
    background-color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
}
