/**
 * Notice Library
 * Version 3.3.0 bulid by API Genius Copyright 2026
 */

/* Base styles */
.nt-lib-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nt-lib-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.nt-lib-lobby {
    background: transparent;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.nt-lib-container {
    display: flex;
    flex-direction: column;
}

/* Card */
.nt-lib-card {
    background: white;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.25);
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: ntSlideIn 0.3s ease;
}

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

/* Close button */
.nt-lib-cut-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.nt-lib-cut-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.nt-lib-cut-btn i {
    pointer-events: none;
}

/* Title */
.nt-lib-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-right: 45px;
    line-height: 1.3;
}

/* Description */
.nt-lib-desc {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    padding-right: 25px;
}

/* Media container */
.nt-lib-media {
    margin-bottom: 26px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    min-height: 150px;
    max-height: 220px;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nt-lib-media.nt-lib-loading {
    background: #f1f5f9;
}

.nt-lib-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    width: 100%;
    height: 100%;
}

.nt-lib-media:not(.nt-lib-loading) .nt-lib-loader-container {
    display: none !important;
}

.nt-lib-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: ntSpin 1s linear infinite;
}

@keyframes ntSpin {
    to {
        transform: rotate(360deg);
    }
}

.nt-lib-loader-text {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.nt-lib-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    color: #dc2626;
    background: #fee2e2;
    width: 100%;
    height: 100%;
    min-height: 150px;
}

.nt-lib-error i {
    font-size: 2rem;
}

.nt-lib-media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    display: none;
}

.nt-lib-media:not(.nt-lib-loading) img {
    display: block !important;
}

.nt-lib-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #0f172a;
    display: none;
}

.nt-lib-media:not(.nt-lib-loading) .nt-lib-video-wrapper {
    display: block !important;
}

.nt-lib-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Action button */
.nt-lib-action-btn {
    align-self: stretch;
    background: #0077b6;
    border: 2px solid #0077b6;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.nt-lib-action-btn:hover {
    background: #0077b6;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.nt-lib-action-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .nt-lib-card {
        padding: 20px 16px;
    }
    
    .nt-lib-title {
        font-size: 1.4rem;
        padding-right: 40px;
    }
    
    .nt-lib-desc {
        font-size: 1rem;
    }
}