/* Maintenance Mode Warning Banner Styles */

.maintenance-warning-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.warning-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.warning-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.warning-message {
    flex: 1;
    min-width: 200px;
}

.warning-countdown {
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Warning Level: Normal (> 20 seconds remaining) */
.warning-normal {
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    color: #fff;
}

/* Warning Level: Urgent (10-20 seconds remaining) */
.warning-urgent {
    background: linear-gradient(135deg, #ff5722 0%, #d32f2f 100%);
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Warning Level: Critical (< 10 seconds remaining) */
.warning-critical {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    animation: flash 0.75s ease-in-out infinite;
}

/* Animation: Pulse (for urgent warnings) */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}

/* Animation: Flash (for critical warnings) */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .maintenance-warning-banner {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .warning-icon {
        font-size: 1.25rem;
    }

    .warning-countdown {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .warning-content {
        gap: 0.5rem;
    }
}
