/* ============================================================
   Herkese açık durum sayfası (status.*)
   Yönetim panelinden bağımsız, tek dosyalık sade tema.
   ============================================================ */

.status-page {
    background: #f7f8fa;
    color: #475467;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    padding: 3rem 1rem 2rem;
}

.status-wrap {
    max-width: 44rem;
    margin: 0 auto;
}

/* ---------- Başlık ---------- */
.status-head { text-align: center; margin-bottom: 1.75rem; }

.status-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #101828;
    margin: 0;
    letter-spacing: -0.01em;
}

.status-desc {
    margin: 0.4rem 0 0;
    color: #667085;
    font-size: 0.95rem;
}

/* ---------- Genel durum şeridi ---------- */
.status-banner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
}

.status-banner-text { font-size: 1.05rem; font-weight: 600; }

.status-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-banner.is-up {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}
.status-banner.is-up .status-banner-dot { background: #12b76a; box-shadow: 0 0 0 4px rgba(18, 183, 105, 0.18); }

.status-banner.is-warn {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}
.status-banner.is-warn .status-banner-dot { background: #f79009; box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.18); }

.status-banner.is-down {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}
.status-banner.is-down .status-banner-dot { background: #f04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.18); }

.status-banner.is-unknown {
    background: #f9fafb;
    border-color: #eaecf0;
    color: #475467;
}
.status-banner.is-unknown .status-banner-dot { background: #98a2b3; box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.18); }

/* ---------- Servis kartları ---------- */
.status-card {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.status-group {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #667085;
    font-weight: 700;
    margin: 0;
    padding: 0.8rem 1.15rem;
    background: #f9fafb;
    border-bottom: 1px solid #f2f4f7;
}

.status-list { list-style: none; margin: 0; padding: 0; }

.status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid #f2f4f7;
}
.status-row:last-child { border-bottom: 0; }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #98a2b3;
}
.status-row.is-up .status-dot { background: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 105, 0.16); }
.status-row.is-warn .status-dot { background: #f79009; box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.16); }
.status-row.is-down .status-dot { background: #f04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.16); }
.status-row.is-unknown .status-dot { box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.16); }

.status-name {
    flex: 1 1 auto;
    font-weight: 600;
    color: #1d2939;
    min-width: 0;
}

.status-latency {
    font-size: 0.8rem;
    color: #98a2b3;
    font-variant-numeric: tabular-nums;
}

.status-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.status-row.is-up .status-pill { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.status-row.is-warn .status-pill { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.status-row.is-down .status-pill { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.status-row.is-unknown .status-pill { background: #f9fafb; border-color: #eaecf0; color: #475467; }

.status-empty {
    padding: 2rem 1.15rem;
    text-align: center;
    color: #667085;
    font-size: 0.9rem;
}

/* ---------- Alt bilgi ---------- */
.status-foot {
    text-align: center;
    color: #98a2b3;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .status-page { padding-top: 1.75rem; }
    .status-row { flex-wrap: wrap; }
    .status-name { flex: 1 1 100%; order: 1; }
    .status-dot { order: 0; }
    .status-pill, .status-latency { order: 2; margin-left: 1.35rem; }
}

/* ---------- Koyu tema (ziyaretçinin tercihine göre) ---------- */
@media (prefers-color-scheme: dark) {
    .status-page { background: #0c111d; color: #cecfd2; }
    .status-title { color: #f5f5f6; }
    .status-desc, .status-foot { color: #85888e; }

    .status-card { background: #161b26; border-color: #1f242f; box-shadow: none; }
    .status-group { background: #101623; border-bottom-color: #1f242f; color: #94969c; }
    .status-row { border-bottom-color: #1f242f; }
    .status-name { color: #ececed; }
    .status-empty { color: #94969c; }

    .status-banner.is-up { background: rgba(18, 183, 105, 0.12); border-color: rgba(18, 183, 105, 0.35); color: #75e0a7; }
    .status-banner.is-warn { background: rgba(247, 144, 9, 0.12); border-color: rgba(247, 144, 9, 0.35); color: #fdb022; }
    .status-banner.is-down { background: rgba(240, 68, 56, 0.12); border-color: rgba(240, 68, 56, 0.35); color: #fda29b; }
    .status-banner.is-unknown { background: rgba(152, 162, 179, 0.1); border-color: #333741; color: #cecfd2; }

    .status-row.is-up .status-pill { background: rgba(18, 183, 105, 0.14); border-color: rgba(18, 183, 105, 0.35); color: #75e0a7; }
    .status-row.is-warn .status-pill { background: rgba(247, 144, 9, 0.14); border-color: rgba(247, 144, 9, 0.35); color: #fdb022; }
    .status-row.is-down .status-pill { background: rgba(240, 68, 56, 0.14); border-color: rgba(240, 68, 56, 0.35); color: #fda29b; }
    .status-row.is-unknown .status-pill { background: rgba(152, 162, 179, 0.1); border-color: #333741; color: #cecfd2; }
}
