/* PopUp "ECOUTER AU LIEU DE LIRE" - Frontend Styles */

.popup-audio-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    cursor: pointer;
}

.popup-audio-overlay.hidden {
    display: none;
}

.popup-audio-modal {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 566px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    cursor: default;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-audio-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.popup-audio-close:hover {
    color: #000;
}

.popup-audio-modal h3 {
    margin: 0 0 30px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.popup-audio-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-audio-button {
    display: inline-block;
    padding: 14px 24px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(84, 92, 210, 0.25);
}

.popup-audio-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(84, 92, 210, 0.35);
}

.popup-audio-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 600px) {
    .popup-audio-modal {
        padding: 30px 20px;
    }

    .popup-audio-modal h3 {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .popup-audio-button {
        padding: 12px 16px;
        font-size: 15px;
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
    }

    .popup-audio-close {
        font-size: 28px;
        right: 15px;
        top: 12px;
    }
}

@media (max-width: 480px) {
    .popup-audio-modal {
        width: 95%;
        padding: 25px 15px;
    }

    .popup-audio-modal h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .popup-audio-buttons {
        gap: 8px;
    }

    .popup-audio-button {
        padding: 11px 14px;
        font-size: 14px;
        flex: 1 1 calc(50% - 4px);
        min-width: 100px;
    }
}
