/**
 * LINUXENIC LMS - Certificate Notification Styles
 */

.lnx-cert-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.lnx-cert-popup {
    background: linear-gradient(180deg, #1e1e1e 0%, #151515 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(241, 234, 57, 0.2);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.lnx-cert-popup-overlay.active .lnx-cert-popup {
    transform: scale(1) translateY(0);
}

.lnx-cert-popup-header {
    background: linear-gradient(135deg, #f1ea39 0%, #d4ce32 100%);
    padding: 30px 25px;
    text-align: center;
}

.lnx-cert-popup-confetti {
    font-size: 48px;
    margin-bottom: 10px;
    animation: lnx-bounce 0.6s ease infinite alternate;
}

@keyframes lnx-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.lnx-cert-popup-title {
    margin: 0;
    color: #121212;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.lnx-cert-popup-subtitle {
    margin: 10px 0 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.lnx-cert-popup-body {
    padding: 30px 25px;
    text-align: center;
}

.lnx-cert-popup-badge {
    margin-bottom: 20px;
}

.lnx-cert-popup-icon {
    width: 80px;
    height: 80px;
    animation: lnx-pop 0.5s ease 0.3s both;
}

@keyframes lnx-pop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.lnx-cert-popup-cert-name {
    margin: 0 0 20px;
    color: #f1ea39;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.lnx-cert-popup-cert-id {
    background: #282828;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
}

.lnx-cert-popup-cert-label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lnx-cert-popup-cert-code {
    color: #f1ea39;
    font-size: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: transparent;
    padding: 0;
}

.lnx-cert-popup-footer {
    padding: 0 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lnx-cert-popup-btn-view {
    width: 100%;
    padding: 15px 25px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center;
    background: #f1ea39 !important;
    color: #121212 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: block;
}

.lnx-cert-popup-btn-view:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(241, 234, 57, 0.3);
}

.lnx-cert-popup-btn-close {
    width: 100%;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lnx-cert-popup-btn-close:hover {
    background: #282828 !important;
    color: #fff !important;
    border-color: #444 !important;
}

@media (max-width: 480px) {
    .lnx-cert-popup {
        width: 95%;
        margin: 10px;
    }
    
    .lnx-cert-popup-header {
        padding: 25px 20px;
    }
    
    .lnx-cert-popup-title {
        font-size: 26px;
    }
    
    .lnx-cert-popup-confetti {
        font-size: 36px;
    }
    
    .lnx-cert-popup-body {
        padding: 25px 20px;
    }
    
    .lnx-cert-popup-cert-name {
        font-size: 18px;
    }
    
    .lnx-cert-popup-footer {
        padding: 0 20px 25px;
    }
}