/* 
 * ITCSS - Component Layer: Audio Modal (V32 - ORIGINAL RESTORATION)
 * ---------------------------------------------------------------
 * Strictly follows the original "Gold-Cyan" design with mobile refinement.
 */

#sound-prompt-modal.lw-modal-backdrop {
    background: transparent !important;
    backdrop-filter: none !important;
    display: none;
}

#sound-prompt-modal.lw-modal-backdrop.active {
    display: flex !important;
}

#sound-prompt-modal .lw-modal-content {
    background: #0a0f19 !important; /* Original Deep Blue */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 255, 255, 0.15) !important;
    padding: 60px 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
    position: relative;
    max-width: 550px;
    width: 90%;
    text-align: center;
}

/* Day Mode Branch (Step 37 Fix) */
body.light-mode #sound-prompt-modal .lw-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
}

#sound-prompt-modal h3 {
    font-size: 2.2rem !important;
    margin-bottom: 15px !important;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
}

body.light-mode #sound-prompt-modal h3 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #222 !important;
}

#sound-prompt-modal p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem !important;
    margin-bottom: 40px !important;
    line-height: 1.5;
}

body.light-mode #sound-prompt-modal p {
    color: #444 !important;
}

/* Modal Actions Layout */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* Premium Primary Button (Original Gold to Cyan) */
#btn-enable-sound {
    background: linear-gradient(90deg, #ffcc00, #00ffff) !important; /* THE GOLD GRADIENT */
    color: #000 !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    flex: 1;
}

#btn-enable-sound:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.5) !important;
}

/* Premium Secondary Button (Original Ghost) */
#btn-keep-silent {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 16px 30px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1;
}

body.light-mode #btn-keep-silent {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #444 !important;
}

#btn-keep-silent:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
}

/* --------------------------------------------------
 * Responsive Correction (Targeted Refinement)
 * -------------------------------------------------- */

@media (max-width: 768px) {
    #sound-prompt-modal .lw-modal-content {
        padding: 30px 18px !important; /* Scale down 25% */
        width: calc(100% - 60px) !important;
        max-width: 285px !important; /* Precise 25% reduction from 380px */
        border-radius: 18px !important;
    }

    #sound-prompt-modal h3 {
        font-size: 1.15rem !important; /* Scaled down proportionally */
        margin-bottom: 10px !important;
    }

    #sound-prompt-modal p {
        font-size: 0.75rem !important;
        margin-bottom: 25px !important;
        line-height: 1.35 !important;
    }

    .modal-actions {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important; /* Ensure children are centered */
    }

    #btn-enable-sound,
    #btn-keep-silent {
        width: 52% !important; /* Targeted shortening request */
        margin: 0 auto !important; /* Force physical centering */
        font-size: 0.62rem !important; 
        padding: 8px 15px !important; /* Compact scaling */
        border-radius: 50px !important;
    }
}