/* ===================================
   PAGE STATUS - STYLES COMPLETS
   =================================== */

/* Container principal */
.status-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Hero Section */
.status-hero {
    padding: 4rem 0;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.status-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Status Colors */
.status-operational {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-degraded {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.status-outage {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Status Icon */
.status-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.status-icon i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.last-updated {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Section Title */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-operational {
    border-left-color: #10b981;
}

.service-issue {
    border-left-color: #ef4444;
}

.service-internal {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

/* Service Header */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.badge-operational {
    background: #d1fae5;
    color: #065f46;
}

.badge-degraded {
    background: #fef3c7;
    color: #92400e;
}

.badge-partial {
    background: #fed7aa;
    color: #9a3412;
}

.badge-outage {
    background: #fee2e2;
    color: #991b1b;
}

/* Service Description */
.service-description {
    color: #4a5568;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Service Metrics */
.service-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
}

/* Incidents Timeline */
.incidents-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incident-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ef4444;
}

.incident-resolved {
    border-left-color: #10b981;
    opacity: 0.8;
}

.incident-active {
    border-left-color: #ef4444;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.incident-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.incident-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.incident-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #718096;
    flex-wrap: wrap;
}

.incident-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Responsive */
@media (max-width: 768px) {
    .status-hero h1 {
        font-size: 1.875rem;
    }
    
    .status-hero .lead {
        font-size: 1rem;
    }
    
    .status-icon {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-metrics {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .status-hero {
        padding: 2rem 0;
    }
    
    .status-hero h1 {
        font-size: 1.5rem;
    }
    
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print Styles */
@media print {
    .status-hero {
        background: none !important;
        color: black !important;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .status-icon {
        animation: none;
    }
}

/* Loading Animation (optionnel) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeIn 0.5s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Dark Mode Support (optionnel) */
@media (prefers-color-scheme: dark) {
    .status-page {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .service-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .service-header h3 {
        color: #f7fafc;
    }
    
    .service-description {
        color: #cbd5e0;
    }
    
    .metric-value {
        color: #f7fafc;
    }
    
    .incident-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .incident-header h4 {
        color: #f7fafc;
    }
    
    .incident-card p {
        color: #cbd5e0;
    }
}
