/* Popup Pro - Frontend Styles */

.popup-pro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.popup-pro-container.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.popup-pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.popup-pro-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Positions */
.popup-position-center {
    margin: auto;
}

.popup-pro-container.popup-position-top {
    align-items: flex-start;
    padding-top: 50px;
}

.popup-pro-container.popup-position-bottom {
    align-items: flex-end;
    padding-bottom: 50px;
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-animation-fade {
    animation: fadeIn 0.4s ease-out;
}

.popup-animation-slide-down {
    animation: slideDown 0.4s ease-out;
}

.popup-animation-slide-up {
    animation: slideUp 0.4s ease-out;
}

.popup-animation-zoom {
    animation: zoomIn 0.4s ease-out;
}

/* Close Button */
.popup-pro-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-pro-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Body */
.popup-pro-body {
    padding: 40px;
}

.popup-pro-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.popup-pro-text {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.popup-pro-text p:last-child {
    margin-bottom: 0;
}

/* Actions */
.popup-pro-actions {
    margin-top: 30px;
    text-align: center;
}

.popup-pro-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.popup-pro-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .popup-pro-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-pro-body {
        padding: 30px 20px;
    }
    
    .popup-pro-title {
        font-size: 24px;
    }
    
    .popup-pro-text {
        font-size: 15px;
    }
    
    .popup-pro-button {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .popup-pro-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
}

/* Smooth scrollbar */
.popup-pro-content::-webkit-scrollbar {
    width: 8px;
}

.popup-pro-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.popup-pro-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.popup-pro-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

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