/* Site Notice Overlay */
.site-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-notice-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notice Box */
.site-notice-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.site-notice-overlay.active .site-notice-box {
    transform: scale(1);
}

/* Dark theme support */
[data-theme="dark"] .site-notice-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Close Button */
.notice-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.notice-close-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Notice Icon */
.notice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #133978, #1e4fa1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

.notice-icon i {
    font-size: 1.8rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(19, 57, 120, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(19, 57, 120, 0);
    }
}

/* Notice Content */
.notice-content {
    text-align: center;
}

.notice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

[data-theme="dark"] .notice-title {
    color: #ffffff;
}

.notice-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 25px;
}

[data-theme="dark"] .notice-message {
    color: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.notice-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #133978, #1e4fa1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

/* Notice Actions */
.notice-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.notice-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.notice-btn.primary {
    background: linear-gradient(135deg, #133978, #1e4fa1);
    color: white;
    box-shadow: 0 4px 15px rgba(19, 57, 120, 0.3);
}

.notice-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 57, 120, 0.4);
}

.notice-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="dark"] .notice-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.notice-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Theme Colors */
.site-notice-box.orange .notice-icon {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.site-notice-box.orange .progress-fill {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.site-notice-box.green .notice-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.site-notice-box.green .progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.site-notice-box.purple .notice-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.site-notice-box.purple .progress-fill {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-notice-box {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .notice-icon {
        width: 50px;
        height: 50px;
    }
    
    .notice-icon i {
        font-size: 1.5rem;
    }
    
    .notice-title {
        font-size: 1.2rem;
    }
    
    .notice-message {
        font-size: 0.9rem;
    }
    
    .notice-actions {
        flex-direction: column;
    }
    
    .notice-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 412px Mobile - Make site notice smaller */
@media (max-width: 412px) {
    .site-notice-overlay {
        padding: 15px;
    }
    
    .site-notice-box {
        padding: 18px 15px !important;
        margin: 8px !important;
        border-radius: 15px !important;
        max-width: 100% !important;
    }
    
    .notice-close-btn {
        width: 28px !important;
        height: 28px !important;
        top: 10px !important;
        right: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .notice-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 12px !important;
    }
    
    .notice-icon i {
        font-size: 1.2rem !important;
    }
    
    .notice-title {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
    
    .notice-message {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    .notice-progress {
        margin-bottom: 15px !important;
    }
    
    .progress-bar {
        height: 22px !important;
        border-radius: 11px !important;
    }
    
    .progress-text {
        font-size: 0.65rem !important;
    }
    
    .notice-actions {
        gap: 6px !important;
    }
    
    .notice-btn {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        gap: 5px !important;
    }
    
    .notice-btn i {
        font-size: 0.7rem !important;
    }
}
