/* ===========================
   STATUS.html — status.css
   Clean, consistent, and safe
   =========================== */

/* --- Layout container assumptions ---
   If your base.html wraps content in a <main>, keep spacing sane.
*/
main {
  padding: 2rem 1.25rem 4rem;
}

/* -----------------------------------
   Clock (top-left time display)
----------------------------------- */
.time {
  width: 100%;
  max-width: 480px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin: 0 auto 1.25rem;
}

/* -----------------------------------
   Status Card
----------------------------------- */
.card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  text-align: center;
}

.card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #020617;
}

/* Status label + variants */
.status-label {
  margin: 0.25rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.status-ok {
  color: #16a34a; /* green */
}

.status-warn {
  color: #ea580c; /* amber */
}

.status-error {
  color: #dc2626; /* red */
}

.status-unknown {
  color: #6b7280; /* gray */
}

.status-message {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

hr {
  margin: 1.5rem 0 1.25rem;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* Section labels */
.section-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #020617;
}

.section-text {
  margin: 0;
  font-size: 0.96rem;
  color: #4b5563;
}

/* Links + note */
.link {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.link a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}

.refresh-note {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* -----------------------------------
   System Overview section
   (SVG + explanatory text)
----------------------------------- */
.system-overview {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.system-overview h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
}

.overview-intro {
  margin: 0 0 1.5rem;
  max-width: 860px;
  color: #475569;
  line-height: 1.6;
}

.overview-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 2rem;
}

/* Text below the diagram */
.overview-text {
  max-width: 900px;
  color: #334155;
  line-height: 1.65;
}

.overview-text p {
  margin: 0 0 1rem;
}

/* -----------------------------------
   OPTIONAL: If you used an HTML card-flow
   (like your screenshot) instead of the SVG.
   This prevents the "jumbled at the end" overlap.
   Safe even if unused.
----------------------------------- */
.system-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.system-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

.system-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.system-card p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

/* If arrows exist as separate elements, hide them on smaller screens */
@media (max-width: 900px) {
  .system-arrow {
    display: none;
  }
}

/* -----------------------------------
   Responsive tweaks
----------------------------------- */
@media (max-width: 520px) {
  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .card h1 {
    font-size: 1.25rem;
  }

  .status-label {
    font-size: 1.05rem;
  }
}
