/* Taurus CDN Demo Origin — single-page stylesheet
   Minimal, dependency-free. Dark/light auto via prefers-color-scheme. */

:root {
  --bg:         #f6f7f9;
  --surface:    #ffffff;
  --text:       #1a1f24;
  --muted:      #5b6770;
  --accent:     #26768e;
  --accent-2:   #e08a2e;
  --ok:         #16a34a;
  --err:        #dc2626;
  --warn:       #d97706;
  --border:     #e4e8eb;
  --hover:      #eef2f5;
  --shadow:     0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(15, 30, 45, .04);
  --mono:       ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0e1418;
    --surface:  #161e23;
    --text:     #e8edf1;
    --muted:    #8d9aa3;
    --accent:   #5cb1c9;
    --accent-2: #f0a45c;
    --border:   #243038;
    --hover:    #1d2730;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre { font-family: var(--mono); font-size: 0.9em; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1d5970 100%);
  color: #ffffff;
  padding: 2.5rem 1.5rem 2rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.logo { width: 56px; height: 56px; color: #ffffff; flex-shrink: 0; }
.hero h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  opacity: 0.86;
  max-width: 60ch;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-family: var(--mono);
}
.status .dot {
  width: 8px; height: 8px;
  background: #6ee7b7;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, .25);
}

/* ─── Container + Cards ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: -1.5rem auto 0;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card.subtle {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.card-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── Buttons ──────────────────────────────────────────── */
.ghost-btn,
.probe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.ghost-btn:hover,
.probe-btn:hover {
  background: var(--hover);
  border-color: var(--accent);
  color: var(--accent);
}
.probe-btn { font-family: var(--mono); }

/* ─── Headers panel ────────────────────────────────────── */
.hdr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  font-size: 0.9rem;
}
@media (min-width: 720px) {
  .hdr-grid { grid-template-columns: 200px 1fr; column-gap: 1.25rem; }
  .hdr-row { display: contents; }
}
.hdr-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.hdr-row:last-child { border-bottom: 0; }
.hdr-row .lbl {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.hdr-row .val {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  word-break: break-all;
  text-align: right;
}
@media (min-width: 720px) {
  .hdr-row .val { text-align: left; }
}
.muted { color: var(--muted); font-style: italic; }
.raw-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.raw-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--accent);
  user-select: none;
}
.raw-details pre {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: auto;
  max-height: 320px;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ─── Asset grid ───────────────────────────────────────── */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.asset {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.asset-preview {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hover);
  overflow: hidden;
}
.asset-image img { width: 100%; height: 100%; object-fit: cover; }
.asset-mono {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--accent);
}
.asset-pdf  { color: #dc2626; }
.asset-video { color: #9333ea; }
.asset-text { color: var(--warn); }
.asset-meta {
  padding: 0.65rem 0.75rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.asset-name {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--mono);
}
.asset-size {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}
.asset-link {
  margin: 0.25rem 0.75rem 0.75rem;
  font-size: 0.7rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-link:hover { text-decoration: underline; }

/* ─── Cache-Control cards ──────────────────────────────── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.cc {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cc header { display: flex; }
.cc header code {
  background: var(--surface);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}
.cc p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  flex: 1;
}
.probe-out {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 3em;
  max-height: 180px;
  overflow: auto;
}

/* ─── Health row ───────────────────────────────────────── */
.health-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .health-row { grid-template-columns: 1fr 1fr; }
}
.health {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.health.ok  { border-left: 4px solid var(--ok); }
.health.err { border-left: 4px solid var(--err); }
.health-icon {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
}
.health.ok  .health-icon { background: rgba(22, 163, 74, .12); color: var(--ok); }
.health.err .health-icon { background: rgba(220, 38, 38, .12); color: var(--err); }
.health-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.health-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
}
.health-desc {
  font-size: 0.83rem;
  color: var(--muted);
}
.health .probe-btn { grid-column: 1 / 3; justify-self: start; }
.health .probe-out { grid-column: 1 / 3; }

/* ─── Footer ───────────────────────────────────────────── */
.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.foot .sep { opacity: 0.5; }
.foot code { background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 4px; border: 1px solid var(--border); }
