/* Shared styles for status, changelog, 404 */
.page-body {
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.page-header__links {
  display: flex;
  gap: 8px;
}

.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Status */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.status-banner--degraded {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.status-banner__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.status-banner--degraded .status-banner__dot {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-banner__text {
  font-size: 15px;
  font-weight: 500;
}

.status-banner__updated {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.status-item__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.status-item__indicator--maintenance {
  background: var(--warning);
}

.status-item__info {
  flex: 1;
}

.status-item__name {
  font-size: 14px;
  font-weight: 600;
}

.status-item__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-item__uptime {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--success);
}

.status-history {
  margin-top: 48px;
}

.status-history__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-incident {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.status-incident__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.status-incident__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.status-incident__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Changelog */
.changelog-entry {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.changelog-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-entry__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.changelog-entry__version {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--primary);
}

.changelog-entry__date {
  font-size: 13px;
  color: var(--text-muted);
}

.changelog-entry__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--primary);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.changelog-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.changelog-list li strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* 404 */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 56px);
  padding: 48px 24px;
}

.error-page__code {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--primary), #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-page__desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-page__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .page-title {
    font-size: 26px;
  }

  .error-page__code {
    font-size: 80px;
  }

  .status-banner__updated {
    display: none;
  }
}
