/**
 * Smart Popup Styles
 */

.smartpopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smartpopup-overlay.active {
    opacity: 1;
}

.smartpopup-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.smartpopup-overlay.active .smartpopup-container {
    transform: scale(1);
}

/* Animation Classes */
.smartpopup-overlay.animation-fadeIn {
    animation: smartPopupFadeIn 0.4s ease forwards;
}

.smartpopup-overlay.animation-slideDown .smartpopup-container {
    animation: smartPopupSlideDown 0.5s ease forwards;
}

.smartpopup-overlay.animation-slideUp .smartpopup-container {
    animation: smartPopupSlideUp 0.5s ease forwards;
}

.smartpopup-overlay.animation-zoomIn .smartpopup-container {
    animation: smartPopupZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Close Button */
.smartpopup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s ease;
    z-index: 10;
}

.smartpopup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.smartpopup-close svg {
    width: 18px;
    height: 18px;
}

/* Content */
.smartpopup-content {
    padding: 40px 30px 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.smartpopup-content h1,
.smartpopup-content h2,
.smartpopup-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.smartpopup-content h1 {
    font-size: 28px;
}

.smartpopup-content h2 {
    font-size: 24px;
}

.smartpopup-content h3 {
    font-size: 20px;
}

.smartpopup-content p {
    margin-bottom: 15px;
}

.smartpopup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.smartpopup-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.smartpopup-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.smartpopup-content .btn,
.smartpopup-content button[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.smartpopup-content .btn:hover,
.smartpopup-content button[type="submit"]:hover {
    background: #0056b3;
}

/* Animations */
@keyframes smartPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes smartPopupSlideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes smartPopupSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes smartPopupZoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .smartpopup-container {
        max-width: 95%;
        border-radius: 8px;
    }

    .smartpopup-content {
        padding: 35px 20px 20px;
        font-size: 15px;
    }

    .smartpopup-content h1 {
        font-size: 24px;
    }

    .smartpopup-content h2 {
        font-size: 20px;
    }

    .smartpopup-content h3 {
        font-size: 18px;
    }

    .smartpopup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* Custom scrollbar */
.smartpopup-container::-webkit-scrollbar {
    width: 8px;
}

.smartpopup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.smartpopup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.smartpopup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Prevent body scroll when popup is open */
body.smartpopup-open {
    overflow: hidden;
}
