/* Component styles layered on top of Tailwind utilities. */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #04201b;
  background: #2dd4bf;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary:hover { background: #5eead4; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  border: 1px solid #1e2b45;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: #2dd4bf; color: #fff; }

.card {
  display: block;
  border: 1px solid #1e2b45;
  background: rgba(17, 26, 46, 0.4);
  border-radius: 0.9rem;
  padding: 1.25rem;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.card:hover { border-color: #2dd4bf; transform: translateY(-2px); }

.section-title { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.section-sub { color: #94a3b8; margin-top: 0.4rem; max-width: 42rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid #1e2b45;
  transition: all 0.15s ease;
}
.chip:hover { border-color: #2dd4bf; color: #fff; }
.chip-active { background: rgba(45, 212, 191, 0.15); border-color: #2dd4bf; color: #2dd4bf; }

/* Severity badges */
.sev {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sev-moderate { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.sev-high { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.sev-severe { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.sev-catastrophic { background: rgba(190, 18, 60, 0.25); color: #fb7185; }

html { scroll-behavior: smooth; }

/* Matrix (windtunnel) cells */
.matrix-cell {
  width: 6.5rem;
  height: 2.6rem;
  font-weight: 700;
  transition: filter 0.1s ease, opacity 0.1s ease;
}
.matrix-cell:hover { filter: brightness(1.35); }
.matrix-cell.v-untested { background: rgba(148, 163, 184, 0.06); color: #475569; }
.matrix-cell.v-holds    { background: rgba(34, 197, 94, 0.18);  color: #4ade80; }
.matrix-cell.v-strained { background: rgba(245, 158, 11, 0.20); color: #fbbf24; }
.matrix-cell.v-tears    { background: rgba(239, 68, 68, 0.22);  color: #f87171; }
