/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Container and layout utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-image {
    height: 40px;
    width: auto;
}

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007aff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    border-radius: 1px;
}

/* Status Header */
.status-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.status-title {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.status-subtitle {
    font-size: 20px;
    color: #6e6e73;
    margin-bottom: 32px;
}

.overall-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
}

.overall-status.operational {
    background: rgba(52, 199, 89, 0.1);
    color: #30d158;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.overall-status.outage {
    background: rgba(255, 69, 58, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

.overall-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
}

/* Services Status */
.services-status {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.service-description {
    font-size: 14px;
    color: #6e6e73;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.service-status.operational {
    background: rgba(52, 199, 89, 0.1);
    color: #30d158;
}

.service-status.maintenance {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.service-status.degraded {
    background: rgba(255, 69, 58, 0.1);
    color: #ff3b30;
}

.service-status.outage {
    background: rgba(255, 69, 58, 0.1);
    color: #ff3b30;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.service-metrics {
    display: flex;
    gap: 32px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 12px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Uptime Statistics */
.uptime-stats {
    padding: 60px 0;
    background: white;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 32px;
    text-align: center;
}

.uptime-chart {
    max-width: 800px;
    margin: 0 auto;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 200px;
    margin-bottom: 16px;
}

.bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    min-height: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bar.operational {
    background: #30d158;
}

.bar.degraded {
    background: #ff9500;
}

.bar.outage {
    background: #ff3b30;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6e6e73;
}

/* Recent Incidents */
.recent-incidents {
    padding: 60px 0;
}

.incidents-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.incident-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.incident-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.incident-time {
    font-size: 14px;
    color: #6e6e73;
}

.incident-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.incident-card.resolved .incident-status {
    background: rgba(52, 199, 89, 0.1);
    color: #30d158;
}

.incident-card.ongoing .incident-status {
    background: rgba(255, 69, 58, 0.1);
    color: #ff3b30;
}

.incident-description {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 40px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #a1a1a6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .status-title {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .service-metrics {
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }
}
