/*
 * status-pages.css
 * Place at: /assets/css/status-pages.css
 * Zero conflicts with main.css
 */

/* ═══ BREADCRUMB ══════════════════════════════════════════════ */
.st-breadcrumb {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .65rem 0; font-size: .8rem; color: var(--ink-50);
}
.st-breadcrumb a { color: var(--ink-75); transition: color .2s; }
.st-breadcrumb a:hover { color: var(--orange); }
.st-breadcrumb span { margin: 0 .45rem; opacity: .4; }

/* ═══ OVERALL STATUS HERO ═════════════════════════════════════ */
.st-hero { border-bottom: 1px solid var(--border); padding: 3rem 0 2.5rem; }
.st-hero-inner { text-align: center; }
.st-overall-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; border-radius: 100px;
  border: 1.5px solid; margin-bottom: 1.5rem;
}
.st-overall-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
@keyframes st-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(16,185,129,.1); }
}
.st-overall-icon { font-size: 1.25rem; }
.st-overall-label { font-family: var(--fd); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.st-hero-title {
  font-family: var(--fd); font-size: clamp(1.6rem,3.5vw,2.25rem);
  font-weight: 800; letter-spacing: -.035em; color: var(--ink);
  margin-bottom: .6rem;
}
.st-hero-desc { font-size: .9375rem; color: var(--ink-50); max-width: 540px; margin-inline: auto; line-height: 1.65; margin-bottom: 1.25rem; }
.st-last-update { font-size: .8rem; color: var(--ink-30); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.st-last-update strong { color: var(--ink-75); }
.st-refresh-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: .15rem .5rem; cursor: pointer; font-size: .85rem; color: var(--ink-50);
  transition: all .2s;
}
.st-refresh-btn:hover { background: var(--surface); color: var(--orange); border-color: var(--orange); }

/* ═══ ACTIVE INCIDENTS BANNER ════════════════════════════════ */
.st-active-incidents { padding: 1.5rem 0 0; }
.st-incident-banner {
  border-left: 4px solid; border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  border-top: 1px solid rgba(0,0,0,.06); border-right: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06);
}
.st-ib-head {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-bottom: .6rem; flex-wrap: wrap;
}
.st-ib-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.st-ib-title {
  font-family: var(--fd); font-size: 1rem; font-weight: 700;
  text-decoration: none; display: block; margin-bottom: .3rem;
}
.st-ib-title:hover { text-decoration: underline; }
.st-ib-meta { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.st-inc-status-badge {
  display: inline-flex; padding: .2rem .7rem; border-radius: 100px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; border: 1px solid;
}
.st-ib-time { font-size: .78rem; color: var(--ink-30); }
.st-ib-viewbtn {
  margin-left: auto; padding: .35rem .9rem; border: 1.5px solid;
  border-radius: 8px; font-size: .78rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: all .2s;
  flex-shrink: 0;
}
.st-ib-viewbtn:hover { opacity: .8; }
.st-ib-body { font-size: .875rem; color: var(--ink-75); line-height: 1.65; margin: .5rem 0; }
.st-ib-affected { font-size: .78rem; color: var(--ink-50); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.st-aff-chip { display: inline-flex; padding: .18rem .65rem; border: 1px solid; border-radius: 100px; font-size: .72rem; font-weight: 600; }

/* ═══ COMPONENTS ══════════════════════════════════════════════ */
.st-components { padding: 2rem 0 1rem; }
.st-cat-group {
  background: var(--sw); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 1.25rem; overflow: hidden;
}
.st-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.st-cat-info { display: flex; align-items: center; gap: .65rem; }
.st-cat-emoji { font-size: 1.1rem; }
.st-cat-name { font-family: var(--fd); font-size: .9375rem; font-weight: 700; color: var(--ink); }
.st-cat-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .85rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700;
}
.st-comp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.4rem; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.st-comp-row:last-of-type { border-bottom: none; }
.st-comp-row:hover { background: rgba(0,0,0,.02); }
.st-comp-left { display: flex; align-items: center; gap: .85rem; }
.st-comp-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.st-comp-name { font-size: .9rem; font-weight: 600; color: var(--ink); display: block; }
.st-comp-desc { font-size: .75rem; color: var(--ink-30); display: block; margin-top: .1rem; }
.st-comp-status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .75rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700;
}

/* ═══ UPTIME BAR ══════════════════════════════════════════════ */
.st-uptime-wrap {
  padding: .5rem 1.4rem .85rem;
  border-bottom: 1px solid var(--border);
}
.st-uptime-wrap:last-child { border-bottom: none; }
.st-bar-track {
  display: flex; gap: 2px; height: 28px; align-items: stretch;
  border-radius: 6px; overflow: hidden;
}
.st-bar-day {
  flex: 1; border-radius: 2px; cursor: pointer; transition: opacity .15s;
  position: relative;
}
.st-bar-day:hover { opacity: .75; }
.st-bar-meta {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: var(--ink-30); margin-top: .35rem;
}

/* ═══ SECTION HEADER ══════════════════════════════════════════ */
.st-sh { margin-bottom: 2rem; }
.st-sh h2 { font-family: var(--fd); font-size: clamp(1.2rem,2.5vw,1.6rem); font-weight: 800; color: var(--ink); margin-bottom: .4rem; }
.st-sh p { font-size: .875rem; color: var(--ink-50); }

/* ═══ HISTORY ═════════════════════════════════════════════════ */
.st-history { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--border); }
.st-hist-day { margin-bottom: 2rem; }
.st-hist-date {
  font-family: var(--fd); font-size: .85rem; font-weight: 700;
  color: var(--ink-50); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.st-hist-date::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.st-hist-item {
  background: var(--sw); border: 1px solid var(--border);
  border-left: 3px solid; border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem; margin-bottom: .6rem;
}
.st-hist-head {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .4rem; flex-wrap: wrap;
}
.st-hist-title {
  font-size: .9rem; font-weight: 700; text-decoration: none;
}
.st-hist-title:hover { text-decoration: underline; }
.st-hist-badge {
  padding: .15rem .6rem; border-radius: 100px;
  font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.st-hist-body { font-size: .82rem; color: var(--ink-75); line-height: 1.6; margin: .3rem 0; }
.st-hist-meta { font-size: .72rem; color: var(--ink-30); margin-top: .4rem; }
.st-no-history {
  text-align: center; padding: 3rem; background: var(--sw);
  border: 1px solid var(--border); border-radius: 14px;
}
.st-no-history span { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.st-no-history p { color: var(--ink-50); font-size: .9rem; }

/* ═══ FOOTER BAR ═════════════════════════════════════════════ */
.st-footer-bar {
  background: var(--sw); border-top: 1px solid var(--border);
  padding: .85rem 0;
}
.st-footer-bar .container { display: flex; justify-content: space-between; align-items: center; }
.st-footer-bar span { font-size: .8rem; color: var(--ink-30); }
.st-footer-link { font-size: .8rem; font-weight: 600; color: var(--orange); transition: opacity .2s; }
.st-footer-link:hover { opacity: .75; }

/* ═══ INCIDENT DETAIL ════════════════════════════════════════ */
.st-detail-hero { padding: 2.5rem 0 2rem; }
.st-detail-hero-inner { max-width: 900px; }
.st-back-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--ink-50);
  text-decoration: none; margin-bottom: 1.1rem;
  padding: .3rem .8rem; border: 1px solid var(--border);
  border-radius: 8px; transition: all .2s;
}
.st-back-btn:hover { color: var(--ink); border-color: var(--ink-50); }
.st-detail-type-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28rem .85rem; border: 1px solid; border-radius: 100px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .85rem;
}
.st-detail-title {
  font-family: var(--fd); font-size: clamp(1.5rem,3.5vw,2.25rem);
  font-weight: 800; letter-spacing: -.035em; color: var(--ink);
  margin-bottom: 1rem; line-height: 1.15;
}
.st-detail-meta { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.st-detail-time { font-size: .82rem; color: var(--ink-50); }

/* ═══ DETAIL BODY ════════════════════════════════════════════ */
.st-detail-body { padding: 2.5rem 0 4rem; }
.st-detail-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem;
  align-items: start; max-width: 1100px;
}

/* Timeline */
.st-timeline-wrap { position: relative; }
.st-timeline-title { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 1.5rem; }
.st-timeline-item {
  display: flex; gap: 1.1rem; margin-bottom: 1.5rem; position: relative;
}
.st-timeline-item::before {
  content: ''; position: absolute; left: 11px; top: 24px; bottom: -1.5rem;
  width: 2px; background: var(--border);
}
.st-timeline-item:last-child::before { display: none; }
.st-tl-dot {
  width: 22px; height: 22px; border-radius: 50%;
  flex-shrink: 0; margin-top: .25rem; position: relative; z-index: 1;
}
.st-tl-content {
  flex: 1; background: var(--sw); border: 1px solid;
  border-radius: 12px; padding: 1.1rem 1.25rem;
}
.st-tl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; gap: .75rem; flex-wrap: wrap; }
.st-tl-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.st-tl-time { font-size: .75rem; color: var(--ink-30); white-space: nowrap; }
.st-tl-body { font-size: .875rem; color: var(--ink-75); line-height: 1.7; margin: 0; white-space: pre-wrap; }

/* Sidebar */
.st-detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.st-sidebar-card {
  background: var(--sw); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem 1.3rem;
}
.st-sidebar-card h3 { font-family: var(--fd); font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.st-big-badge { font-size: .82rem !important; padding: .45rem 1.1rem !important; }
.st-sidebar-service {
  font-size: .82rem; color: var(--ink-75); padding: .45rem 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .5rem;
}
.st-sidebar-service::before { content: '▸'; color: var(--orange); font-size: .7rem; }
.st-sidebar-service:last-child { border-bottom: none; }
.st-sidebar-row { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.st-sidebar-row:last-child { border-bottom: none; }
.st-sidebar-row span { color: var(--ink-50); }
.st-sidebar-row strong { color: var(--ink); }
.st-sidebar-backbtn {
  display: block; text-align: center; padding: .65rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: .875rem; font-weight: 600;
  color: var(--ink-75); transition: all .2s; text-decoration: none;
}
.st-sidebar-backbtn:hover { border-color: var(--ink-50); color: var(--ink); }
.st-sidebar-contactbtn {
  display: block; text-align: center; padding: .65rem;
  background: var(--orange); border-radius: 10px;
  font-size: .875rem; font-weight: 700; color: #fff !important;
  transition: opacity .2s; text-decoration: none;
}
.st-sidebar-contactbtn:hover { opacity: .9; }

/* ═══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .st-detail-grid { grid-template-columns: 1fr; }
  .st-detail-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; }
  .st-sidebar-card { flex: 1; min-width: 200px; }
}
@media (max-width: 640px) {
  .st-ib-head { flex-direction: column; }
  .st-ib-viewbtn { margin-left: 0; }
  .st-cat-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .st-comp-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .st-detail-sidebar { flex-direction: column; }
}
