/* Netiyo · Sistem Durumu sayfası (views/content/status.tpl)
   Renkler temanın --wstyle-* değişkenlerinden gelir; açık/koyu tema otomatik uyar. */
.st-hero, .st-body, .st-tip {
    --st-radius: var(--wstyle-radius, .625rem);
    --st-line: var(--wstyle-border-color);
    --st-ok: #10b981;
    --st-perf: #facc15;
    --st-partial: #f97316;
    --st-down: #ef4444;
    --st-maint: #0ea5e9;
    --st-empty: color-mix(in srgb, var(--wstyle-border-color) 85%, var(--wstyle-muted-color));
    --st-soft: color-mix(in srgb, var(--wstyle-surface-bg) 55%, var(--wstyle-body-bg));
}
[data-bs-theme=dark] .st-body { --st-empty: color-mix(in srgb, var(--wstyle-border-color) 70%, #ffffff 6%); }

/* ── Hero ─────────────────────────────────────────────── */
.st-hero { position: relative; overflow: hidden; padding-bottom: 3.25rem; }
.st-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(var(--wstyle-primary-rgb), .12), transparent 60%),
        radial-gradient(40rem 24rem at 0% 100%, rgba(16, 185, 129, .07), transparent 60%);
}
.st-hero > .container { position: relative; }
.st-hero-copy { max-width: 44rem; }
.st-pill {
    display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .8rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--wstyle-primary);
    background: var(--wstyle-surface-bg); border: 1px solid rgba(var(--wstyle-primary-rgb), .22);
}
.st-ping { position: relative; width: .5rem; height: .5rem; }
.st-ping::before, .st-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--st-ok); }
.st-ping::before { animation: st-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }
@keyframes st-ping { 75%, 100% { transform: scale(2.3); opacity: 0; } }
.st-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 1.1rem 0 .9rem; color: var(--wstyle-heading-color); }
.st-title span { color: var(--wstyle-primary); }
.st-lead { font-size: 1.08rem; color: var(--wstyle-muted-color); max-width: 34rem; margin: 0; }

/* ── Gövde ────────────────────────────────────────────── */
.st-body { max-width: 960px; padding-top: 2rem; padding-bottom: 3.5rem; }
.st-card { background: var(--wstyle-surface-bg); border: 1px solid var(--st-line); border-radius: var(--st-radius); margin-bottom: 1.25rem; box-shadow: 0 1px 2px rgba(16, 22, 56, .04); }
.st-pad { padding: 1.25rem; }
.st-error { display: none; padding: .8rem 1rem; margin-bottom: 1.25rem; border-radius: var(--st-radius); font-size: .85rem;
    color: #b91c1c; background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .3); }
.st-error.is-on { display: block; }

/* Özet */
.st-summary { border-color: rgba(16, 185, 129, .4); }
.st-summary.is-warn { border-color: rgba(249, 115, 22, .45); }
.st-summary.is-bad { border-color: rgba(239, 68, 68, .45); }
.st-sum-top { display: flex; gap: .9rem; padding: 1.15rem 1.25rem 1rem; }
.st-sum-icon { width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center; border-radius: .55rem; font-size: 1.2rem;
    color: var(--st-ok); background: rgba(16, 185, 129, .12); }
.is-warn .st-sum-icon { color: var(--st-partial); background: rgba(249, 115, 22, .12); }
.is-bad .st-sum-icon { color: var(--st-down); background: rgba(239, 68, 68, .12); }
.st-sum-copy h2 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--wstyle-heading-color); }
.st-sum-copy p { margin: .15rem 0 0; font-size: .84rem; color: var(--wstyle-muted-color); }
.st-sum-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.st-checked { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--wstyle-muted-color); white-space: nowrap; }
.st-dot { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--st-ok); flex: none; }
.st-icon-btn { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; padding: 0; border-radius: .45rem; cursor: pointer;
    color: var(--wstyle-muted-color); background: var(--wstyle-surface-bg); border: 1px solid var(--st-line); }
.st-icon-btn:hover { color: var(--wstyle-primary); border-color: rgba(var(--wstyle-primary-rgb), .4); }
.st-icon-btn.is-spin i { animation: st-spin .8s linear; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-sum-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: .8rem 1.25rem; border-top: 1px solid var(--st-line);
    font-size: .84rem; font-weight: 600; color: var(--wstyle-heading-color); }
.st-sum-stats span { display: inline-flex; align-items: center; gap: .4rem; }
.st-sum-stats em { font-style: normal; }
.st-sum-stats .is-ok { color: var(--st-ok); }
.st-since { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .65rem 1.25rem; font-size: .82rem; color: var(--wstyle-muted-color);
    background: var(--st-soft); border-top: 1px solid var(--st-line); border-radius: 0 0 var(--st-radius) var(--st-radius); }
.st-since i { color: var(--wstyle-primary); }
.st-since b { color: var(--wstyle-heading-color); font-weight: 700; }

/* Başlık satırı */
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.st-h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--wstyle-heading-color); }
.st-ico { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: .5rem; font-size: .95rem;
    color: var(--wstyle-primary); background: rgba(var(--wstyle-primary-rgb), .1); }
.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.st-seg { display: inline-flex; padding: .2rem; border-radius: .5rem; background: var(--st-soft); border: 1px solid var(--st-line); }
.st-seg button { border: 0; background: transparent; padding: .3rem .7rem; border-radius: .35rem; cursor: pointer;
    font-size: .78rem; font-weight: 600; color: var(--wstyle-muted-color); }
.st-seg button:hover { color: var(--wstyle-heading-color); }
.st-seg button.is-on { background: var(--wstyle-surface-bg); color: var(--wstyle-primary); box-shadow: 0 1px 3px rgba(16, 22, 56, .1); }
.st-select { width: auto; min-width: 8.5rem; font-size: .78rem; }

/* Gruplar ve servisler */
.st-grp { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0 .4rem; border-bottom: 1px solid var(--st-line);
    font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wstyle-muted-color); }
.st-state { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--st-ok); }
.st-state.is-down { color: var(--st-down); } .st-state.is-down .st-dot { background: var(--st-down); }
.st-state.is-partial { color: var(--st-partial); } .st-state.is-partial .st-dot { background: var(--st-partial); }
.st-row, .st-axis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem) 5rem; gap: 1rem; align-items: center; }
.st-row { padding: .6rem 0; border-bottom: 1px solid var(--st-line); }
.st-name { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.st-svc-ico { width: 1.75rem; height: 1.75rem; flex: none; display: grid; place-items: center; border-radius: .4rem; font-size: .85rem;
    color: var(--st-ok); background: rgba(16, 185, 129, .12); }
.st-name-t { min-width: 0; }
.st-name-t b { display: block; font-size: .875rem; font-weight: 700; color: var(--wstyle-heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name-t small { display: block; font-size: .7rem; color: var(--wstyle-muted-color); }
.st-bars { display: flex; gap: 2px; height: 1.6rem; }
.st-bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--st-empty); transition: filter .1s; }
.st-bar.ok { background: var(--st-ok); } .st-bar.perf { background: var(--st-perf); } .st-bar.partial { background: var(--st-partial); }
.st-bar.down { background: var(--st-down); } .st-bar.maint { background: var(--st-maint); }
.st-bar:hover { filter: brightness(.85); }
.st-right { text-align: right; line-height: 1.35; }
.st-right .st-state { justify-content: flex-end; }
.st-pct { font-size: .76rem; font-weight: 600; color: var(--wstyle-muted-color); font-variant-numeric: tabular-nums; }
.st-axis { padding: .35rem 0 .8rem; border-bottom: 1px solid var(--st-line); font-size: .7rem; color: var(--wstyle-muted-color); }
.st-axis div { display: flex; justify-content: space-between; }
.st-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding-top: .8rem; font-size: .74rem; color: var(--wstyle-muted-color); }
.st-legend i { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 2px; vertical-align: -.02rem; }
.lg-ok { background: var(--st-ok); } .lg-perf { background: var(--st-perf); } .lg-partial { background: var(--st-partial); }
.lg-down { background: var(--st-down); } .lg-maint { background: var(--st-maint); } .lg-none { background: var(--st-empty); }
.st-note { margin-left: auto; }
.st-tz { display: flex; justify-content: center; align-items: center; gap: .4rem; margin: -.25rem 0 1.25rem; font-size: .78rem; color: var(--wstyle-muted-color); }

/* Olay geçmişi */
.st-inc { display: flex; gap: .9rem; padding: .9rem; margin-bottom: .65rem; border: 1px solid var(--st-line); border-radius: calc(var(--st-radius) * .8); }
.st-inc:last-child { margin-bottom: 0; }
.st-date { width: 3.3rem; flex: none; padding: .4rem 0; text-align: center; line-height: 1.1; border-radius: .45rem; background: var(--st-soft); border: 1px solid var(--st-line); }
.st-date b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--wstyle-heading-color); }
.st-date span { display: block; margin-top: .2rem; font-size: .62rem; font-weight: 800; text-transform: uppercase; color: var(--wstyle-muted-color); }
.st-date small { display: block; font-size: .62rem; color: var(--wstyle-muted-color); }
.st-inc-body { flex: 1; min-width: 0; }
.st-inc-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 700; color: var(--wstyle-heading-color); }
.st-inc-title .bi-tools { color: var(--st-maint); } .st-inc-title .bi-exclamation-triangle { color: var(--st-partial); }
.st-badge { padding: .1rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #047857; background: rgba(16, 185, 129, .12); }
.st-badge.is-live { color: #b91c1c; background: rgba(239, 68, 68, .12); }
.st-badge.is-plan { color: #0369a1; background: rgba(14, 165, 233, .14); }
[data-bs-theme=dark] .st-badge { color: #6ee7b7; } [data-bs-theme=dark] .st-badge.is-live { color: #fca5a5; } [data-bs-theme=dark] .st-badge.is-plan { color: #7dd3fc; }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .76rem; color: var(--wstyle-muted-color); }
.st-tag { padding: .05rem .45rem; border-radius: .3rem; background: var(--st-soft); border: 1px solid var(--st-line); color: var(--wstyle-body-color); }
.st-meta .st-time { display: inline-flex; align-items: center; gap: .25rem; margin-left: .25rem; }
.st-inc details { margin-top: .35rem; font-size: .8rem; }
.st-inc summary { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--wstyle-primary); }
.st-inc summary::-webkit-details-marker { display: none; }
.st-inc summary i { transition: transform .15s; font-size: .7rem; }
.st-inc details[open] summary i { transform: rotate(180deg); }
.st-inc details p { margin: .4rem 0 0; color: var(--wstyle-body-color); }
.st-empty-box { padding: 1.6rem 1rem; text-align: center; font-size: .85rem; color: var(--wstyle-muted-color); border: 1px dashed var(--st-line); border-radius: calc(var(--st-radius) * .8); }
.st-empty-box i { display: block; margin-bottom: .4rem; font-size: 1.4rem; color: var(--st-ok); }

/* Yükleniyor ve ipucu */
.st-sk { height: 2.8rem; margin: .5rem 0; border-radius: .4rem; background: var(--st-soft); animation: st-sk 1.1s ease-in-out infinite alternate; }
@keyframes st-sk { to { opacity: .45; } }
.st-tip { position: fixed; z-index: 1080; pointer-events: none; opacity: 0; transition: opacity .1s; white-space: nowrap;
    padding: .5rem .65rem; border-radius: .45rem; font-size: .76rem; line-height: 1.5; color: #fff;
    background: var(--wstyle-secondary, #101638); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.st-tip b { display: block; font-weight: 700; }
.st-tip span { color: #cbd5e1; }

@media (max-width: 767.98px) {
    .st-row { grid-template-columns: minmax(0, 1fr) 5rem; gap: .5rem .75rem; }
    .st-row .st-bars { grid-column: 1 / -1; grid-row: 2; }
    .st-axis { grid-template-columns: 1fr; }
    .st-axis > span { display: none; }
    .st-sum-top { flex-wrap: wrap; }
    .st-sum-right { margin-left: 3.3rem; flex-direction: row; align-items: center; }
    .st-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .st-ping::before, .st-sk, .st-icon-btn.is-spin i { animation: none; }
}
