/* 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.15);
}

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

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

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

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

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

.status-icon.down {
    background: rgba(255, 107, 107, 0.15);
}

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

.status-icon.down::after {
    content: '✕';
    font-size: 2rem;
    color: var(--accent-primary);
    font-weight: bold;
}

@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;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Service Categories */
.service-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 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;
    gap: 1rem;
}

.service-info {
    flex: 1;
}

.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;
}

.service-status {
    flex-shrink: 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;
}

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

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

.status-badge.down {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

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

.status-badge.not-configured {
    background: rgba(120, 120, 130, 0.1);
    color: var(--text-tertiary);
    border: 1px solid rgba(120, 120, 130, 0.25);
    opacity: 0.7;
}

.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;
    }
}

/* Status History */
.status-history {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.history-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.history-dot.operational {
    background: #2ed573;
    box-shadow: 0 0 8px rgba(46, 213, 115, 0.4);
}

.history-dot.degraded {
    background: #ffa801;
    box-shadow: 0 0 8px rgba(255, 168, 1, 0.4);
}

.history-dot.down {
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.history-dot.loading {
    background: var(--border-color);
}

.history-dot:hover {
    transform: scale(1.3);
}

/* 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 #2ed573;
    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: var(--accent-primary);
}

.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-card {
        padding: 1.25rem;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .history-dots {
        gap: 0.4rem;
    }
    
    .history-dot {
        width: 10px;
        height: 10px;
    }
}

@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: 1rem;
    }

    .service-info h3 {
        font-size: 1rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (min-width: 1024px) {
    .service-category {
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-title {
        grid-column: 1 / -1;
    }
}
/* Help Section */
.status-help-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.status-help-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.status-help-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.help-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.help-button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    color: #fff;
}