/**
 * OnlyCore — sistem durum paneli (status.html)
 */
html {
  scroll-padding-top: 110px;
}

:root {
  --st-bg: #0d1117;
  --st-surface: #161b22;
  --st-surface-2: #1c2128;
  --st-border: rgba(240, 246, 252, 0.1);
  --st-text: #f0f6fc;
  --st-muted: #8b949e;
  --st-green: #3fb950;
  --st-green-dim: rgba(63, 185, 80, 0.15);
  --st-red: #f85149;
  --st-blue: #388bfd;
  --st-accent: #58a6ff;
}

body.page-status {
  margin: 0;
  min-height: 100vh;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.page-status a {
  color: var(--st-accent);
  text-decoration: none;
}
.page-status a:hover {
  text-decoration: underline;
}

/* —— Üst şerit (sabit) —— */
.st-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: visible;
  border-bottom: 1px solid var(--st-border);
  background: rgba(22, 27, 34, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.st-topbar__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 52px;
  /* Nav (z-index:1) tıklanabilir kalsın: şeffaf alan tıklamayı yutmasın */
  pointer-events: none;
}
.page-status .st-topbar__inner .st-logo {
  pointer-events: auto;
}
.st-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--st-text) !important;
  text-decoration: none !important;
}
.st-logo span {
  color: var(--st-accent);
}
/* index.html ile aynı logo3 (nav-logo-wordmark — style.css ile uyumlu) */
.page-status .st-logo.nav-logo-link {
  display: inline-flex !important;
  align-items: center;
  line-height: 0;
  overflow: visible;
  text-decoration: none !important;
}
.page-status .st-logo.nav-logo-link:hover {
  text-decoration: none !important;
}
.page-status .st-logo.nav-logo-link .nav-logo-wordmark {
  height: auto !important;
  width: auto !important;
  max-height: 40px !important;
  max-width: min(170px, 42vw) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transform: none;
  transform-origin: left center;
}
/* Bakım tam ortada; Durum / Olaylar yan sütunlarda (viewport ortasına göre) */
.st-nav.st-nav--tri {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.st-nav--tri .st-nav__side,
.st-nav--tri .st-nav__mid {
  pointer-events: auto;
  display: flex;
  align-items: center;
}
.st-nav__side--l {
  justify-content: flex-end;
  padding-right: 14px;
}
.st-nav__mid {
  justify-content: center;
}
.st-nav__side--r {
  justify-content: flex-start;
  padding-left: 14px;
}
.st-nav a {
  color: var(--st-muted) !important;
  padding: 8px 12px;
  border-radius: 0;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.page-status .st-nav a:hover {
  color: var(--st-text) !important;
  background: transparent !important;
  text-decoration: underline !important;
  text-decoration-color: #fff !important;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.st-nav a.is-active {
  color: var(--st-text) !important;
  background: transparent !important;
}
.st-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--st-border);
  border-radius: 8px;
  color: var(--st-text) !important;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: border-color 0.15s, background 0.15s;
}
.st-btn-outline:hover {
  border-color: rgba(240, 246, 252, 0.22);
  background: rgba(240, 246, 252, 0.05);
  text-decoration: none !important;
}

/* —— Panel gövdesi —— (sabit header için üst boşluk) */
.st-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 110px 20px 80px;
}

.st-panel {
  display: none;
}
.st-panel.is-visible {
  display: block;
  animation: stFade 0.25s ease;
}
@keyframes stFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Genel durum başlığı */
.st-hero {
  text-align: center;
  margin-bottom: 28px;
}
.st-hero__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--st-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(63, 185, 80, 0.25);
}
.st-hero__icon svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.st-hero__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.st-hero__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--st-muted);
}

/* Duyuru çubuğu */
.st-banner {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--st-border);
  border-radius: 10px;
  background: var(--st-surface);
  overflow: hidden;
}
.st-banner__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  background: rgba(240, 246, 252, 0.04);
  border-right: 1px solid var(--st-border);
  color: var(--st-muted);
  font-size: 1.1rem;
}
.st-banner__text {
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--st-muted);
  line-height: 1.45;
}

/* Kart */
.st-card {
  border: 1px solid var(--st-border);
  border-radius: 12px;
  background: var(--st-surface);
  margin-bottom: 20px;
  overflow: hidden;
}
.st-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--st-border);
  gap: 12px;
}
.st-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--st-green-dim);
  color: var(--st-green);
  border: 1px solid rgba(63, 185, 80, 0.35);
  cursor: default;
  white-space: nowrap;
}
.st-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.st-card__body {
  padding: 18px;
}

/* Uptime satırı */
.st-uprow {
  margin-bottom: 28px;
}
.st-uprow:last-child {
  margin-bottom: 0;
}
.st-uprow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.st-uprow__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.st-uprow__name .st-dot-ok {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--st-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st-uprow__name .st-dot-ok svg {
  width: 10px;
  height: 10px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.st-uprow__pct {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--st-green);
}

.st-bar {
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.st-bar__seg {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  transition: opacity 0.15s, filter 0.12s;
  cursor: default;
}
.st-bar__seg:hover {
  filter: brightness(1.12);
  z-index: 1;
}
.st-bar__seg--up { background: var(--st-green); }
.st-bar__seg--down { background: var(--st-red); }
.st-bar__seg--maint { background: var(--st-blue); }

/* Hover tooltip (segment) */
.st-seg-tip {
  position: fixed;
  z-index: 10000;
  min-width: 200px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1c2128;
  border: 1px solid var(--st-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.st-seg-tip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.st-seg-tip__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.st-seg-tip__ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.st-seg-tip--up .st-seg-tip__ic {
  background: var(--st-green);
  color: #fff;
}
.st-seg-tip--up .st-seg-tip__ic::before {
  content: "✓";
}
.st-seg-tip--down .st-seg-tip__ic {
  background: var(--st-red);
  color: #fff;
}
.st-seg-tip--down .st-seg-tip__ic::before {
  content: "!";
}
.st-seg-tip--maint .st-seg-tip__ic {
  background: var(--st-blue);
  color: #fff;
}
.st-seg-tip--maint .st-seg-tip__ic::before {
  content: "i";
  font-style: italic;
  font-family: Georgia, serif;
}
.st-seg-tip__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--st-text);
  margin: 0;
  padding-top: 1px;
}
.st-seg-tip__detail {
  margin: 0 0 10px;
  padding-left: 32px;
  font-size: 0.82rem;
  color: #79c0ff;
  line-height: 1.35;
}
.st-seg-tip__detail:empty {
  display: none;
}
.st-seg-tip__detail:empty + .st-seg-tip__rule {
  margin-top: 0;
}
.st-seg-tip__rule {
  margin: 0 0 8px;
  border: none;
  border-top: 1px solid var(--st-border);
}
.st-seg-tip__date {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #79c0ff;
}

/* Yakında satırı */
.st-uprow--soon .st-uprow__name .st-dot-soon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 148, 158, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--st-muted);
  font-size: 10px;
}
.st-badge-soon {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 148, 158, 0.2);
  color: var(--st-muted);
  border: 1px solid rgba(139, 148, 158, 0.35);
}
.st-soon-placeholder {
  height: 34px;
  border-radius: 6px;
  border: 1px dashed rgba(139, 148, 158, 0.4);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--st-muted);
}

.st-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--st-muted);
}

/* Alt grup satırları (Network vb.) */
.st-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--st-surface-2);
  border: 1px solid var(--st-border);
  color: var(--st-text);
  text-decoration: none !important;
  transition: background 0.15s;
}
.st-subrow:hover {
  background: #22272e;
}
.st-subrow__left {
  font-weight: 600;
  font-size: 0.92rem;
}
.st-subrow__right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--st-muted);
}
.st-subrow__right .st-ok {
  color: var(--st-green);
  font-weight: 600;
}
.st-subrow__chev {
  opacity: 0.5;
  font-size: 1rem;
}

/* İç içe kart (Network → DDoS) */
.st-nested {
  margin-top: 12px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  background: rgba(0, 0, 0, 0.2);
}

/* Bakım / Olaylar sayfa başlığı */
.st-pagehead {
  text-align: center;
  margin-bottom: 28px;
}
.st-pagehead h1 {
  margin: 0 0 16px;
  font-size: 1.65rem;
  font-weight: 700;
}
.st-daterange {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-muted);
  font-size: 0.9rem;
}
.st-daterange button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--st-surface-2);
  color: var(--st-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.st-daterange button:hover {
  background: #22272e;
  color: var(--st-text);
}

/* Aylık kartlar */
.st-month {
  position: relative;
  border: 1px solid var(--st-border);
  border-radius: 14px;
  background: var(--st-surface);
  padding: 52px 24px 40px;
  margin-bottom: 18px;
  min-height: 140px;
}
.st-month__label {
  position: absolute;
  top: 18px;
  left: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}
.st-month__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--st-muted);
  font-size: 0.95rem;
  min-height: 72px;
}
.st-month__empty svg {
  width: 22px;
  height: 22px;
  opacity: 0.55;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.st-foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--st-muted);
  border-top: 1px solid var(--st-border);
}
.st-foot a {
  color: var(--st-muted);
}
.st-foot a:hover {
  color: var(--st-text);
}

/* Durum — Makineler / Ağ kategorileri + aksiyon satırları */
.page-status .st-infra {
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--st-border);
}
.page-status .st-infra-cat {
  margin-bottom: 1.75rem;
}
.page-status .st-infra-cat:last-child {
  margin-bottom: 0;
}
.page-status .st-infra-cat__title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.page-status .st-infra-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-status .st-infra-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: var(--st-text);
  cursor: pointer;
  border: 1px solid var(--st-border);
  border-radius: 10px;
  background: var(--st-surface);
  transition: background 0.15s, border-color 0.15s;
}
.page-status .st-infra-acc__btn:hover {
  background: var(--st-surface-2);
  border-color: rgba(240, 246, 252, 0.14);
}
.page-status .st-infra-acc__btn:focus-visible {
  outline: 2px solid var(--st-accent);
  outline-offset: 2px;
}
.page-status .st-infra-acc__label {
  font-weight: 600;
  font-size: 0.98rem;
  flex: 1;
  min-width: 0;
}
.page-status .st-infra-acc__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--st-muted);
  font-size: 0.9rem;
}
.page-status .st-infra-acc__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--st-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-status .st-infra-acc__check svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}
.page-status .st-infra-acc__ok {
  color: var(--st-muted);
  font-weight: 500;
}
.page-status .st-infra-acc__chev {
  font-size: 0.72rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}
.page-status .st-infra-acc.is-open .st-infra-acc__chev {
  transform: rotate(90deg);
}
.page-status .st-infra-acc:not(.is-open) .st-infra-acc__panel {
  display: none;
}
.page-status .st-infra-acc__panel {
  padding: 14px 4px 4px 2px;
}

@media (max-width: 991px) {
  .page-status .st-logo.nav-logo-link .nav-logo-wordmark {
    max-height: 40px !important;
    max-width: min(160px, 48vw) !important;
    margin: 0 !important;
  }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 168px; }
  .st-hero__title { font-size: 1.4rem; }
  .st-nav__side--l { padding-right: 6px; }
  .st-nav__side--r { padding-left: 6px; }
  .st-nav a { padding: 8px 6px; font-size: 0.88rem; }
  .st-wrap { padding-top: 168px; }
  .page-status .st-infra-acc__meta { gap: 6px; }
}
