/* status.tourertravel.com — public status page */
:root {
    --bg: #0b0d12;
    --surface: #141821;
    --surface-2: #1c2230;
    --border: #2a3142;
    --text: #e6e9ef;
    --muted: #8a93a6;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --gray: #4b5563;
    --radius: 12px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f7f8fa;
        --surface: #ffffff;
        --surface-2: #f1f3f7;
        --border: #e2e6ee;
        --text: #0b0d12;
        --muted: #5a6477;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.container { padding-bottom: 64px; }
.muted { color: var(--muted); font-size: 14px; }

a { color: inherit; }

.status-header {
    padding: 16px 0;
}
.status-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; }
.status-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }

.overall {
    margin: 32px 0 24px;
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 20px;
}
.overall-text { flex: 1 1 auto; min-width: 0; }
.overall h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.overall p { margin: 0; }
.overall-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--gray);
}
.overall-icon svg { display: block; }
.overall-operational { border-color: rgba(34,197,94,0.35); background: linear-gradient(135deg, rgba(34,197,94,0.08), var(--surface) 60%); }
.overall-operational .overall-icon { background: var(--green); }
.overall-degraded   { border-color: rgba(234,179,8,0.4);  background: linear-gradient(135deg, rgba(234,179,8,0.10), var(--surface) 60%); }
.overall-degraded .overall-icon   { background: var(--yellow); }
.overall-outage     { border-color: rgba(239,68,68,0.4);  background: linear-gradient(135deg, rgba(239,68,68,0.10), var(--surface) 60%); }
.overall-outage .overall-icon     { background: var(--red); }

h2 { font-size: 16px; font-weight: 600; margin: 32px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.category-sub { margin: 0 0 12px; font-size: 13px; }

.components { display: flex; flex-direction: column; gap: 12px; }
.component {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.component header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    margin-bottom: 14px;
}
.component h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.component p { margin: 0; }
.component-status {
    text-align: right;
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.component-status .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--gray);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.component-operational .dot { background: var(--green); }
.component-degraded .dot   { background: var(--yellow); }
.component-outage .dot     { background: var(--red); }

.bars {
    display: grid;
    grid-template-columns: repeat(90, 1fr);
    gap: 2px;
    height: 36px;
}
.bar {
    background: var(--gray); border-radius: 2px; transition: transform 0.1s;
    min-height: 100%;
}
.bar:hover { transform: scaleY(1.15); }
.bar-operational { background: var(--green); }
.bar-degraded   { background: var(--yellow); }
.bar-outage     { background: var(--red); }
.bar-unknown    { background: var(--surface-2); border: 1px solid var(--border); }

.incidents .incident-list { display: flex; flex-direction: column; gap: 12px; }
.incident {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.incident-major   { border-left: 4px solid var(--yellow); }
.incident-critical { border-left: 4px solid var(--red); }
.incident header {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-bottom: 8px;
}
.incident h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1 1 auto; }
.incident time { color: var(--muted); font-size: 13px; }
.incident .updates { list-style: none; padding: 0; margin: 12px 0 0; border-left: 2px solid var(--border); }
.incident .updates li { padding: 8px 0 8px 16px; margin-left: 4px; position: relative; }
.incident .updates li::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--muted); position: absolute; left: -5px; top: 14px;
}
.incident .updates p { margin: 4px 0 0; font-size: 14px; }

.badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; text-transform: capitalize;
    background: var(--surface-2); color: var(--muted);
}
.badge-investigating { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-identified    { background: rgba(234,179,8,0.18); color: var(--yellow); }
.badge-monitoring    { background: rgba(59,130,246,0.18); color: #60a5fa; }
.badge-resolved      { background: rgba(34,197,94,0.18); color: var(--green); }
.badge-sev-minor     { background: rgba(107,114,128,0.18); color: var(--muted); }
.badge-sev-major     { background: rgba(234,179,8,0.18); color: var(--yellow); }
.badge-sev-critical  { background: rgba(239,68,68,0.18); color: var(--red); }

.status-footer { margin: 48px 0 32px; text-align: center; }
.status-footer a { color: var(--muted); }

@media (max-width: 640px) {
    .bars { grid-template-columns: repeat(45, 1fr); }
    .bars .bar:nth-child(odd) { display: none; }
    .component header { flex-direction: column; }
    .component-status { text-align: left; justify-content: flex-start; }
    .overall { flex-direction: column; align-items: flex-start; }
}
