/* ═══════════════════════════════════════════════════════════════════════════
   modal.css — PurpleClear Modal System
   Extracted from purpleclear_modal_template.html.
   The design tokens (--purple, --red, etc.) are defined in blog.css / admin.css.
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
}

.modal-window {
    width: 90%;
    max-width: 640px;
    max-height: 88vh;
    border-left: 5px solid var(--purple);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(51,0,76,.35);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0 20px;
    flex-shrink: 0;
}

.modal-title {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 100;
    color: var(--purple-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color .15s;
}

.modal-close-btn:hover { color: var(--text-primary); }

.modal-content {
    font-family: var(--font-body);
    padding: 0 25px;
    color: var(--text-primary);
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-content h2 {
    font-family: var(--font-brand);
    font-size: 16px;
    font-weight: 200;
    color: var(--purple-dark);
    margin: 35px 0 4px 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 20px 14px;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}

.modal-footer-hidden { display: none; }

.modal-footer-button {
    padding: 6px 14px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s;
}

.modal-footer-button:hover { opacity: 0.85; }

.modal-footer-button-std { background: var(--purple); color: #fff; }
.modal-footer-button-red { background: var(--red); color: #fff; }

.modal-hidden { display: none !important; }
