/**
 * Popup Styles
 *
 * @package My_Theme_Core
 */

.mtc-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.mtc-popup.active {
    display: flex;
}

.mtc-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.mtc-popup-content {
    position: relative;
    background: #fff;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1;
    width: 100%;
    max-width: 600px;
}

.mtc-popup-body {
    padding: 30px;
}

.mtc-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mtc-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Animations */
.mtc-popup-animation-fade .mtc-popup-content {
    animation: mtcFadeIn 0.3s ease;
}

.mtc-popup-animation-slide .mtc-popup-content {
    animation: mtcSlideIn 0.3s ease;
}

.mtc-popup-animation-zoom .mtc-popup-content {
    animation: mtcZoomIn 0.3s ease;
}

@keyframes mtcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mtcSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes mtcZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mtc-popup-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .mtc-popup-body {
        padding: 20px;
    }
}

