/* Location: /www/wwwroot/payorget.com/app/Modules/Frontend/Home/Assets/css/popup-banner.css */

/* Popup Banner Overlay */
.popup-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-banner-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation enabled */
.popup-banner-overlay[data-animation="true"] .popup-banner-container {
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Popup Container */
.popup-banner-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Position Variants */
.popup-banner-container.popup-position-top {
    align-self: flex-start;
    margin-top: 40px;
}

.popup-banner-container.popup-position-bottom {
    align-self: flex-end;
    margin-bottom: 40px;
}

.popup-banner-container.popup-position-center {
    align-self: center;
}

/* Popup Content */
.popup-banner-content {
    position: relative;
    width: 100%;
    overflow-y: auto;
    max-height: 90vh;
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.popup-close-btn i {
    pointer-events: none;
}

/* Popup Image */
.popup-banner-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.popup-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Popup Title */
.popup-banner-title {
    padding: 25px 30px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    text-align: center;
    line-height: 1.4;
}

.popup-banner-title br {
    display: block;
    margin: 8px 0;
}

/* Popup Actions */
.popup-banner-actions {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Popup Buttons */
.popup-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.popup-btn-custom {
    color: #ffffff;
    transition: all 0.3s ease;
}

.popup-btn-custom:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.popup-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.popup-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Button Size Variants */
.popup-btn-size-small {
    padding: 10px 18px;
    font-size: 13px;
}

.popup-btn-size-medium {
    padding: 14px 24px;
    font-size: 15px;
}

.popup-btn-size-large {
    padding: 18px 32px;
    font-size: 17px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-banner-container {
        max-width: 95%;
        width: 95%;
        border-radius: 12px;
    }

    .popup-banner-container.popup-position-top {
        margin-top: 20px;
    }

    .popup-banner-container.popup-position-bottom {
        margin-bottom: 20px;
    }

    .popup-close-btn {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
        font-size: 16px;
    }

    .popup-banner-title {
        padding: 20px;
        font-size: 18px;
    }

    .popup-banner-actions {
        padding: 0 20px 20px 20px;
        gap: 10px;
    }

    .popup-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .popup-btn-size-small {
        padding: 9px 16px;
        font-size: 12px;
    }

    .popup-btn-size-medium {
        padding: 12px 20px;
        font-size: 14px;
    }

    .popup-btn-size-large {
        padding: 15px 26px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .popup-banner-title {
        font-size: 16px;
        padding: 15px;
    }

    .popup-banner-actions {
        padding: 0 15px 15px 15px;
    }
}

/* Loading State */
.popup-banner-overlay.loading .popup-banner-content {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.popup-banner-overlay:focus-within {
    outline: none;
}

.popup-btn:focus,
.popup-close-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}