/**
 * popup.css - Nur Styles für Popups/Modals
 */

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* MODAL CONTENT */
.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MODAL HEADER */
.modal-header {
    position: sticky;
    top: 0;
    background: var(--card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: var(--accent2);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
}

/* MODAL CLOSE BUTTON */
.modal-close {
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.modal-close:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    transform: rotate(90deg);
}

/* MODAL BODY */
.modal-body {
    padding: 1.5rem;
}

.modal-body h4 {
    color: var(--text);
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
}

.modal-body p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* MODAL FOOTER */
.modal-footer {
    margin-top: 1.5rem;
    text-align: right;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}