/* Status Badges for Flight Categories and Conditions */

/* Base badge styling */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base, all 0.3s ease);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge i {
    font-size: 1rem;
}

/* Flight Category Badges */
.badge-vfr {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.badge-mvfr {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
}

.badge-ifr {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    color: white;
}

.badge-lifr {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
    color: white;
}

/* Condition Status Badges */
.badge-active {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

.badge-inactive {
    background: linear-gradient(135deg, #757575, #9e9e9e);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
}

/* Service Status Badges */
.badge-online {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.badge-offline {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.badge-degraded {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.badge-maintenance {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

/* Flight Status Badges */
.badge-departing {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.badge-arriving {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.badge-enroute {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
}

.badge-delayed {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.badge-cancelled {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

/* Weather Condition Badges */
.badge-clear {
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    color: #1a1a1a;
}

.badge-cloudy {
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    color: #1a1a1a;
}

.badge-rain {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.badge-snow {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #1a1a1a;
}

.badge-fog {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

/* Size variants */
.status-badge-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.status-badge-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Pulse animation for active/live statuses */
.status-badge-pulse {
    position: relative;
    overflow: visible;
}

.status-badge-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.75rem;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}

.status-badge-pulse {
    padding-left: 2rem;
}

/* Hover effects */
.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badge group - for displaying multiple badges together */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Inline badge within text */
.status-badge-inline {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    vertical-align: middle;
    margin: 0 0.25rem;
}

/* Dark mode adjustments */
[data-theme="dark"] .status-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .badge-clear,
[data-theme="dark"] .badge-cloudy,
[data-theme="dark"] .badge-snow {
    color: white;
    filter: brightness(0.85);
}

/* Accessibility - outline for focus */
.status-badge:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Blinking animation for urgent statuses */
.status-badge-blink {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .status-badge i {
        font-size: 0.875rem;
    }

    .badge-group {
        gap: 0.375rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .status-badge,
    .status-badge-pulse::before,
    .status-badge-blink {
        animation: none;
    }

    .status-badge:hover {
        transform: none;
    }
}
