/* =====================================================
   NOTIFICATION POPUP CSS
   File: assets/css/notification-popup.css
   ===================================================== */

/* Overlay Background */
.notification-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 40, 69, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    padding: 20px;
}

/* Main Popup Container */
.notification-popup {
    position: relative;
    background: #FFFFFF;
    max-width: 550px;
    width: 90%;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: visible;
    transform: scale(0.85);
    animation: popupAppear 0.4s ease 0.2s forwards;
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #AF4D58 0%, #D68F41 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #AF4D58 0%, #D68F41 100%);
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(175, 77, 88, 0.3);
}

.popup-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: linear-gradient(135deg, #D68F41 0%, #AF4D58 100%);
    box-shadow: 0 6px 20px rgba(175, 77, 88, 0.4);
}

.popup-close i {
    color: #FFFFFF;
    font-size: 18px;
}

/* Popup Content Container */
.popup-content {
    padding: 40px 35px 35px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.popup-content::-webkit-scrollbar {
    width: 6px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #AF4D58 0%, #D68F41 100%);
    border-radius: 3px;
}

/* Popup Title */
.popup-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #0A2845 0%, #AF4D58 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease infinite;
}

/* Title Shine Effect */
@keyframes titleShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Image Container */
.popup-image-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Popup Image */
.popup-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    animation: imageReveal 0.8s ease forwards;
}

/* Image Reveal Animation */
@keyframes imageReveal {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Description Text */
.popup-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
    text-align: center;
    animation: textFadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupAppear {
    0% {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }
    60% {
        transform: scale(1.02) translateY(0);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Animation Classes */
.popup-hide {
    animation: popupHide 0.3s ease forwards !important;
}

.popup-hide .notification-popup {
    animation: popupDisappear 0.3s ease forwards !important;
}

@keyframes popupHide {
    to {
        opacity: 0;
    }
}

@keyframes popupDisappear {
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* Show Animation Class */
.popup-show {
    display: flex !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-popup {
        max-width: 95%;
        width: 95%;
    }
    
    .popup-content {
        padding: 30px 25px;
    }
    
    .popup-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .popup-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .popup-close {
        top: -12px;
        right: -12px;
        width: 35px;
        height: 35px;
    }
    
    .popup-close i {
        font-size: 16px;
    }
    
    .popup-image {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .notification-popup {
        border-radius: 16px;
    }
    
    .popup-content {
        padding: 25px 20px;
        max-height: 70vh;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-description {
        font-size: 13px;
    }
}

/* Special Effects for Premium Feel */
.notification-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(214, 143, 65, 0.1) 0%,
        transparent 70%
    );
    animation: glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Decorative Elements */
.notification-popup::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        transparent 80%
    );
    filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
}