@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00a2ff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #f3f4f6;
    --banner-ok: #8b515d;
}

[data-theme="dark"] {
    --bg-light: #000000;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --banner-ok: #4a2b32;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; padding: 2rem 1.5rem; }

/* Header & Navigation */
nav { margin-bottom: 4rem; }
.btn-subscribe { 
    background-color: #f3f4f6; 
    color: #111827; 
    border: none;
    border-radius: 8px; 
    font-weight: 600; 
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-subscribe:hover { background-color: #e5e7eb; }

/* Global Banner */
.global-banner {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 4rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.banner-online { background-color: var(--banner-ok); color: white; }
.banner-degraded { background-color: var(--warning); color: white; }
.banner-down { background-color: var(--danger); color: white; }

/* Uptime Bars (90 days) */
.service-row { margin-bottom: 3rem; }
.service-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 0.75rem; 
    font-size: 0.95rem;
    font-weight: 600;
}
.uptime-pct { color: var(--primary); font-size: 0.85rem; }

.uptime-container {
    display: flex;
    gap: 2px;
    height: 38px;
}
.uptime-bit {
    flex: 1;
    background-color: var(--primary);
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.1s;
}
.uptime-bit:hover { transform: scaleY(1.15); cursor: pointer; }
.uptime-bit.down { background-color: var(--danger); }
.uptime-bit.degraded { background-color: var(--warning); }

.uptime-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Metrics & Charts */
.metric-section { margin-top: 5rem; }
.metric-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 2rem;
}
.metric-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.chart-wrapper {
    margin-bottom: 3rem;
}
.chart-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}
.chart-container {
    height: 120px;
    background: linear-gradient(180deg, rgba(0,162,255,0.08) 0%, rgba(255,255,255,0) 100%);
    border-bottom: 2px solid var(--primary);
    position: relative;
}

/* Notices & Timeline */
.notices-section { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid var(--border-color); }
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: background 0.2s;
}
.theme-toggle:hover { background: #e5e7eb; }

/* Buttons & Utils */
.btn-outline-dark { border-color: var(--border-color); color: var(--text-main); font-size: 0.8rem; font-weight: 600; }
.btn-group .btn.active { background-color: var(--text-main); color: var(--bg-light); }

@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem; }
    .global-banner { font-size: 1.2rem; padding: 2rem 1.5rem; }
    .uptime-container { gap: 1px; }
}
