/* ============================================
   STATUS - Page Styles
   Prefix: st-
   ============================================ */

/* Page Header */
.st-page-header {
  position: relative;
  padding: 120px 0 48px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #0a2540 0%, #1a1a40 50%, #0a2540 100%);
}
.st-page-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.st-page-header__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,115,230,.15) 0%, transparent 70%);
}
.st-page-header .container {
  position: relative;
  z-index: 1;
}
.st-page-header .sa-breadcrumb {
  justify-content: center;
  margin-bottom: 16px;
}
.st-page-header .sa-breadcrumb a,
.st-page-header .sa-breadcrumb svg {
  color: rgba(255,255,255,.6);
}
.st-page-header .sa-breadcrumb a:hover {
  color: #fff;
}
.st-page-header .sa-breadcrumb span {
  color: #fff;
}
.st-page-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.st-page-header__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 24px;
}

/* Global status badge */
.st-global-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(0,166,81,.12);
  border: 1px solid rgba(0,166,81,.3);
}
.st-global-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}
.st-global-status__dot--ok {
  background: #00a651;
  box-shadow: 0 0 8px rgba(0,166,81,.6);
}
.st-global-status__dot--ok::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(0,166,81,.3);
  animation: statusPulse 2s infinite;
}
.st-global-status__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #00a651;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.8); }
}

/* ============================================
   SERVICES GRID
   ============================================ */
.st-services {
  background: var(--bg-secondary);
}

.st-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.st-service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: transform .3s, box-shadow .3s;
}

.st-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.st-service-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.st-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.st-service-card__icon svg {
  width: 22px;
  height: 22px;
}

.st-service-card__icon--blue {
  background: rgba(0,115,230,.08);
  color: var(--accent-primary);
}
.st-service-card__icon--cyan {
  background: rgba(6,182,212,.08);
  color: #06b6d4;
}
.st-service-card__icon--green {
  background: rgba(0,166,81,.08);
  color: var(--accent-secondary);
}
.st-service-card__icon--purple {
  background: rgba(139,92,246,.08);
  color: #8b5cf6;
}
.st-service-card__icon--orange {
  background: rgba(245,158,11,.08);
  color: #f59e0b;
}
.st-service-card__icon--rose {
  background: rgba(244,63,94,.08);
  color: #f43f5e;
}

.st-service-card__info {
  flex: 1;
  min-width: 0;
}

.st-service-card__info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.st-service-card__info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.st-service-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.st-service-card__badge--ok {
  background: rgba(0,166,81,.08);
  color: #00a651;
}

.st-service-card__badge--warning {
  background: rgba(245,158,11,.08);
  color: #f59e0b;
}

.st-service-card__badge--down {
  background: rgba(239,68,68,.08);
  color: #ef4444;
}

/* Progress bar */
.st-service-card__bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  overflow: hidden;
  margin-bottom: 6px;
}

.st-service-card__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}

.st-service-card__bar-fill--ok {
  background: linear-gradient(90deg, #00a651, #00e65c);
}

.st-service-card__bar-fill--warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.st-service-card__bar-fill--down {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.st-service-card__uptime {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Last updated */
.st-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TOP BAR (used across all pages)
   ============================================ */
.top-bar {
  background: var(--gray-900);
  color: rgba(255,255,255,.8);
  font-size: 0.75rem;
  height: 36px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar__apps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__label {
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.top-bar__store {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15);
  transition: all .2s;
}

.top-bar__store:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.top-bar__status:hover {
  color: #fff;
}

.top-bar__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a651;
  box-shadow: 0 0 6px rgba(0,166,81,.6);
}

/* Offset nav for top bar */
.has-top-bar .nav {
  top: 36px;
}
.has-top-bar .mobile-menu {
  top: calc(36px + var(--nav-height));
}
.has-top-bar .hero {
  padding-top: calc(var(--nav-height) + 36px);
}
.has-top-bar section[class$="page-header"] {
  padding-top: 156px;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] .top-bar {
  background: #000;
}

[data-theme="dark"] .st-global-status {
  background: rgba(0,166,81,.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .st-page-header {
    padding: 100px 0 36px;
  }
  .st-services-grid {
    grid-template-columns: 1fr;
  }
  .st-service-card__header {
    flex-wrap: wrap;
  }
  .st-service-card__badge {
    width: 100%;
    justify-content: center;
  }
  .top-bar__label {
    display: none;
  }
  .top-bar__store {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .top-bar {
    height: 32px;
  }
  .has-top-bar .nav {
    top: 32px;
  }
  .has-top-bar .mobile-menu {
    top: calc(32px + var(--nav-height));
  }
  .has-top-bar .hero {
    padding-top: calc(var(--nav-height) + 32px);
  }
  .has-top-bar section[class$="page-header"] {
    padding-top: 148px;
  }
}
