/* =========================================
   NOTIFICATION POPUP - PREMIUM UI
========================================= */

/* Main Theme Colors */
:root{
    --primary-color: #ff7a00;
    --primary-dark: #e56700;
    --secondary-color: #ffb347;
    --light-bg: #fffaf5;
    --card-bg: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #ffe2c2;
    --overlay-color: rgba(0,0,0,0.65);
    --shadow-color: rgba(255,122,0,0.18);
}

/* =========================================
   POPUP OVERLAY
========================================= */
.notification-popup-overlay{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--overlay-color);
    backdrop-filter: blur(6px);

    z-index: 999999;
    padding: 20px;

    animation: fadeIn 0.4s ease;
}

/* =========================================
   POPUP BOX
========================================= */
.notification-popup-box{
    position: relative;

    width: 100%;
    max-width: 650px;

    background: var(--card-bg);
    border-radius: 28px;

    padding: 35px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.15),
        0 10px 25px var(--shadow-color);

    animation: popupAnimation 0.45s ease;
}

/* Animated Top Border */
.notification-popup-box::before{
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );

    background-size: 300% 100%;

    animation: movingGradient 4s linear infinite;
}

/* =========================================
   CLOSE BUTTON
========================================= */
.popup-close-btn{
    position: absolute;
    top: 16px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: none;
    outline: none;

    border-radius: 50%;

    background: #fff4e8;
    color: var(--primary-dark);

    font-size: 28px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;
}

.popup-close-btn:hover{
    background: var(--primary-color);
    color: #fff;

    transform: rotate(90deg) scale(1.05);
}

/* =========================================
   POPUP TITLE
========================================= */
.popup-title{
    font-size: 32px;
    font-weight: 700;

    color: var(--text-dark);

    text-align: center;

    margin-bottom: 28px;
}

/* =========================================
   NOTIFICATION LIST
========================================= */
.notification-list{
    list-style: none;

    margin: 0;
    padding: 0;
    padding-right: 8px;

    max-height: 420px;
    overflow-y: auto;
}

/* Custom Scrollbar */
.notification-list::-webkit-scrollbar{
    width: 8px;
}

.notification-list::-webkit-scrollbar-track{
    background: #fff1df;
    border-radius: 20px;
}

.notification-list::-webkit-scrollbar-thumb{
    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--secondary-color)
    );

    border-radius: 20px;
}

.notification-list::-webkit-scrollbar-thumb:hover{
    background: var(--primary-dark);
}

/* =========================================
   NOTIFICATION ITEM
========================================= */
.notification-list li{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;

    background: var(--light-bg);

    border: 1px solid var(--border-color);

    border-radius: 18px;

    padding: 18px 18px 18px 22px;

    margin-bottom: 18px;

    transition: all 0.3s ease;
}

/* Left Accent Bar */
.notification-list li::before{
    content: "";

    position: absolute;

    left: 0;
    top: 15%;

    width: 5px;
    height: 70%;

    border-radius: 50px;

    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--secondary-color)
    );
}

.notification-list li:hover{
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(255,122,0,0.12);
}

/* =========================================
   NEW BADGE
========================================= */
.new-badge{
    position: relative;

    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;

    padding: 7px 14px;

    border-radius: 50px;

    flex-shrink: 0;

    animation: pulseBadge 1.6s infinite;
}

/* Glow Effect */
.new-badge::after{
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50px;

    background: inherit;

    z-index: -1;

    filter: blur(10px);
    opacity: 0.6;
}

/* =========================================
   APPLY BUTTON
========================================= */
.apply-link{
    text-decoration: none;

    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );

    color: #fff;

    padding: 10px 18px;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.apply-link:hover{
    transform: scale(1.06);

    box-shadow:
        0 10px 20px rgba(255,122,0,0.25);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes popupAnimation{
    from{
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }

    to{
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn{
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}

@keyframes pulseBadge{

    0%{
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,122,0,0.5);
    }

    70%{
        transform: scale(1.08);
        box-shadow: 0 0 0 12px rgba(255,122,0,0);
    }

    100%{
        transform: scale(1);
    }
}

@keyframes movingGradient{

    0%{
        background-position: 0% 50%;
    }

    100%{
        background-position: 100% 50%;
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media(max-width:768px){

    .notification-popup-box{
        padding: 25px 20px;
        border-radius: 22px;
    }

    .popup-title{
        font-size: 25px;
        margin-bottom: 22px;
    }

    .notification-list li{
        flex-direction: column;
        align-items: flex-start;
    }

    .apply-link{
        width: 100%;
        text-align: center;
    }

    .notification-list{
        max-height: 380px;
    }

}