/* Site-wide notices styles */
.site-notices {
    position: relative;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.site-notice {
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
}

.site-notice:last-child {
    border-bottom: none;
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notice-title {
    font-weight: 600;
}

.notice-message {
    font-weight: 400;
}

/* Notice type styles */
.notice-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.notice-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.notice-maintenance {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
}

.notice-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .site-notice {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .notice-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .notice-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .site-notice {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .notice-container {
        padding: 0 10px;
    }
}

/* Ensure notices appear above other content */
.main-header {
    position: relative;
    z-index: 999;
}

/* Add some spacing if notices are present */
body:has(.site-notices) .main-header {
    margin-top: 0;
}

/* Fallback for browsers that don't support :has() */
.site-notices + .main-header {
    margin-top: 0;
}

/* Additional styling for better integration with site theme */
.site-notice {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Hover effects for better interactivity */
.site-notice:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Print styles - hide notices when printing */
@media print {
    .site-notices {
        display: none;
    }
}