/* Status Page Styles */

:root {
    --status-green: #10b981;
    --status-yellow: #f59e0b;
    --status-orange: #f97316;
    --status-red: #ef4444;
    --status-indigo: #6366f1;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin: 0;
    padding: 0;
}

.status-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* ── Hero Section ─────────────────────────────────────────────── */
.status-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f6 50%, #e8ecf2 100%);
    color: #2d3748;
}

/* The dotted world-map image as a watermark */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://weegooads.com/img/logo_intro_small_wgpg_new_01.png') center center / contain no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

[data-bs-theme="dark"] .status-hero {
    background: linear-gradient(135deg, #1a1f2e 0%, #1e2433 50%, #212836 100%);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hero-bg-image {
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem 2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.55;
    font-weight: 300;
}

[data-bs-theme="dark"] .hero-subtitle {
    opacity: 0.6;
}

/* Status pill inside hero */
.hero-status-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-banner-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-banner-issue {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-bs-theme="dark"] .hero-banner-ok {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}

[data-bs-theme="dark"] .hero-banner-issue {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

/* Partner badge row */
.hero-badges {
    margin-top: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.45;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Theme toggle (positioned on hero) */
.theme-toggle {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: rgba(0,0,0,0.15) !important;
    color: rgba(0,0,0,0.5) !important;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.3) !important;
    color: rgba(0,0,0,0.7) !important;
}

[data-bs-theme="dark"] .theme-toggle {
    border-color: rgba(255,255,255,0.25) !important;
    color: rgba(255,255,255,0.6) !important;
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

/* ── Section Cards ────────────────────────────────────────────── */
.section-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

/* ── Service Rows ─────────────────────────────────────────────── */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.service-row:last-child {
    border-bottom: none;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.service-status-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Incident Cards ───────────────────────────────────────────── */
.incident-card {
    border-left: 3px solid var(--bs-border-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0 0.25rem 0.25rem 0;
    background: var(--bs-tertiary-bg);
}

.active-incident {
    border-left-color: var(--status-orange);
}

.past-incident {
    border-left-color: var(--bs-border-color);
}

.incident-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.incident-header {
    margin-bottom: 0.5rem;
}

.incident-meta {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Badges ───────────────────────────────────────────────────── */
.badge-severity {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    color: #fff;
}

.badge-minor { background: var(--status-yellow); color: #1a1a1a; }
.badge-major { background: var(--status-orange); }
.badge-critical { background: var(--status-red); }
.badge-maintenance { background: var(--status-indigo); }

.badge-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
}

.badge-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--status-green);
}

/* ── Timeline ─────────────────────────────────────────────────── */
.incident-timeline {
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--bs-border-color);
}

.timeline-entry {
    position: relative;
    padding: 0.5rem 0 0.5rem 1rem;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0.75rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    border: 2px solid var(--bs-border-color);
}

.timeline-status {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--bs-emphasis-color);
}

.timeline-message {
    font-size: 0.85rem;
    margin-top: 0.15rem;
    color: var(--bs-body-color);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-top: 0.15rem;
}

/* ── Day Groups ───────────────────────────────────────────────── */
.day-group {
    margin-bottom: 1rem;
}

.day-heading {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-incidents {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    padding: 0.25rem 0;
    font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────────── */
.status-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
    font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 576px) {
    .status-container {
        padding: 0 0.75rem 1rem;
    }

    .hero-content {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .incident-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}
