/* Status Page Styles */

.status-page {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background-color: var(--bg-primary);
}

.status-header {
    text-align: center;
    margin-bottom: 3rem;
}

.status-header .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
}

.status-header .logo svg {
    width: 100%;
    height: 100%;
}

.status-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.status-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Overall Status Banner */
.overall-status {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.status-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-icon.operational {
    background: rgba(46, 213, 115, 0.2);
}

.status-icon.operational::before {
    background: rgba(46, 213, 115, 0.3);
}

.status-icon.operational::after {
    content: '✓';
    font-size: 2rem;
    color: #2ed573;
    font-weight: bold;
}

.status-icon.degraded {
    background: rgba(255, 168, 1, 0.2);
}

.status-icon.degraded::before {
    background: rgba(255, 168, 1, 0.3);
}

.status-icon.degraded::after {
    content: '!';
    font-size: 2rem;
    color: #ffa801;
    font-weight: bold;
}

.status-icon.down {
    background: rgba(255, 71, 87, 0.2);
}

.status-icon.down::before {
    background: rgba(255, 71, 87, 0.3);
}

.status-icon.down::after {
    content: '✕';
    font-size: 2rem;
    color: #ff4757;
    font-weight: bold;
}

.status-icon.loading {
    background: rgba(160, 160, 160, 0.2);
}

.status-icon.loading::before {
    display: none;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.status-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.status-text p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Services Container */
.services-container {
    margin-bottom: 3rem;
}

.services-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Service Cards */
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--shadow);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.service-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: lowercase;
}

.status-badge.operational {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-badge.degraded {
    background: rgba(255, 168, 1, 0.15);
    color: #ffa801;
    border: 1px solid rgba(255, 168, 1, 0.3);
}

.status-badge.down {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-badge.loading {
    background: rgba(160, 160, 160, 0.15);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.operational .status-dot {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Service Metrics */
.service-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Status Footer */
.status-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.clock-icon {
    margin-right: 0.25rem;
}

.auto-refresh {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* Incident Section */
.incident-section {
    margin-top: 3rem;
}

.incident-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incident-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1.5rem;
}

.incident-item.operational {
    border-left-color: #2ed573;
}

.incident-item.degraded {
    border-left-color: #ffa801;
}

.incident-item.down {
    border-left-color: #ff4757;
}

.incident-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.incident-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.incident-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-page {
        padding: 4rem 0 2rem;
    }

    .status-header h1 {
        font-size: 2rem;
    }

    .status-indicator {
        flex-direction: column;
        text-align: center;
    }

    .status-icon {
        width: 50px;
        height: 50px;
    }

    .status-icon::after {
        font-size: 1.5rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .status-page {
        padding: 3rem 0 2rem;
    }

    .status-header .logo {
        width: 50px;
        height: 50px;
    }

    .status-header h1 {
        font-size: 1.75rem;
    }

    .overall-status {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.25rem;
    }
}
