/* Custom Thematic Dialogs Styling */

.dialog-paper {
    background-color: #1a1714 !important;
    background-image:
        radial-gradient(circle at center, rgba(30, 20, 10, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('../assets/black-paper.png') !important;
    color: var(--text-color-light) !important;
    border: 2px solid var(--accent-gold) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(197, 160, 89, 0.1) !important;
    max-width: 450px !important;
    padding: 30px !important;
    text-align: center;
    border-radius: 4px;
    z-index: var(--z-index-overlay) !important;
}

#dialog-title {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 10px;
}

#dialog-message {
    font-family: var(--font-body);
    font-style: italic;
    line-height: 1.6;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color-light);
    white-space: pre-wrap;
}

.dialog-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dialog-actions .btn {
    min-width: 120px;
    padding: 10px 20px;
}

/* Animations (Reuse madness-unfold if possible) */
.dialog-paper {
    animation: dialog-unfold 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes dialog-unfold {
    0% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Modal Center Override for Dialogs */
#dialog-modal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile Adjustments for Dialogs */
@media screen and (max-width: 480px) {
    .dialog-paper {
        width: 90% !important;
        padding: 20px !important;
    }
    #dialog-title {
        font-size: 1.4rem;
    }
    #dialog-message {
        font-size: 1rem;
    }
    .dialog-actions {
        flex-direction: column;
        gap: 15px;
    }
    .dialog-actions .btn {
        width: 100%;
        min-width: 0;
    }
}
