/* The live Threat Radar board (home hero): feed rows, severities, EPSS meters, live state, as-of clock and age. */

/* ---------- the board ---------- */
.board {
  position: relative;
  border: 1px solid #1f2a3a;
  border-radius: 14px;
  background: linear-gradient(180deg, #0c1320 0%, #080d16 100%);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 80%), inset 0 1px 0 rgb(255 255 255 / 4%);
  overflow: hidden;
}

.board-fixture {
  margin: 0;
  padding: 6px 16px;
  background: #3a2c08;
  color: #f6d58a;
  font-size: 0.8125rem;
  font-weight: 600;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #1a2433;
}

.board-title {
  font-weight: 700;
  letter-spacing: -0.005em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px 2px 8px;
  border: 1px solid #1f4b33;
  border-radius: 999px;
  color: #6fe3a0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot,
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex: none;
}

.pulse {
  background: #ff6b6b;
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot::after,
  .pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    color: inherit;
    animation: ping 2.2s var(--ease) infinite;
  }

  .live-dot::after {
    border-color: #4ade80;
  }

  .pulse::after {
    border-color: #ff6b6b;
  }
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  80%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.board-state {
  color: #f6d58a;
  font-size: 0.8125rem;
}

.clock {
  margin-inline-start: auto;
  color: var(--panel-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.clock time {
  color: var(--panel-text);
}

.board-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  color: var(--panel-faint);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid #141c29;
}

:root:lang(ka) .board-sub {
  letter-spacing: 0.02em;
}

.board-count {
  color: #ff8f8f;
}

.feed {
  list-style: none;
}

.adv {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 13px 18px 13px 21px;
  border-bottom: 1px solid #121a26;
}

.adv::before {
  content: '';
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sev);
}

.adv:hover {
  background: rgb(142 176 255 / 4%);
}

.sev-critical {
  --sev: #ff5d5d;
}

.sev-high {
  --sev: #ff9248;
}

.sev-medium {
  --sev: #f2c14e;
}

.sev-low {
  --sev: #8fa3bf;
}

.sev-none {
  --sev: #5b6778;
}

.adv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.adv-id {
  color: var(--panel-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.adv-id:hover {
  color: var(--panel-accent);
  text-decoration: underline;
}

.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sev);
  font-size: 0.78rem;
  font-weight: 700;
}

.sev-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--sev);
}

.cvss {
  color: var(--panel-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.kev {
  padding: 1px 8px;
  border-radius: 999px;
  background: #3b1216;
  color: #ff9a9a;
  font-size: 0.72rem;
  font-weight: 700;
}

.adv-sum {
  color: var(--panel-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: var(--panel-faint);
  font-size: 0.75rem;
}

.pkg {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.pkg .more {
  color: var(--panel-faint);
}

.epss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.epss-label {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.meter {
  width: 54px;
  height: 5px;
}

.meter-track {
  fill: #1d2635;
}

.meter-fill {
  fill: var(--sev);
}

.epss-val {
  font-family: var(--font-mono);
  color: var(--panel-muted);
}

.adv-meta time {
  margin-inline-start: auto;
  font-family: var(--font-mono);
}

.board-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 18px;
  color: var(--panel-faint);
  font-size: 0.8125rem;
}

.text-link.on-panel {
  color: var(--panel-accent);
}

.board-blank {
  display: grid;
  gap: 10px;
  padding: 48px 24px;
  color: var(--panel-muted);
  text-align: center;
  justify-items: center;
}

.blank-title {
  color: var(--panel-text);
  font-weight: 650;
}

.board-none {
  padding: 32px 18px;
  color: var(--panel-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-board] .adv {
    opacity: 0;
    transform: translateY(6px);
    animation: row-in 520ms var(--ease) forwards;
  }

  .js [data-board] .adv:nth-child(1) { animation-delay: 260ms; }
  .js [data-board] .adv:nth-child(2) { animation-delay: 340ms; }
  .js [data-board] .adv:nth-child(3) { animation-delay: 420ms; }
  .js [data-board] .adv:nth-child(4) { animation-delay: 500ms; }
  .js [data-board] .adv:nth-child(5) { animation-delay: 580ms; }
  .js [data-board] .adv:nth-child(6) { animation-delay: 660ms; }
}

@keyframes row-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* radar mark in the title, and the age of the data next to the as-of clock */
.board-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.sweep {
  width: 20px;
  height: 20px;
  color: var(--panel-accent);
  flex: none;
}

.sweep-arm {
  transform-origin: 12px 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .sweep-arm {
    animation: sweep 4s linear infinite;
  }
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.age:not(:empty) {
  margin-inline-start: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(142 176 255 / 10%);
  color: var(--panel-accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
}

.board {
  border-color: #23304a;
  box-shadow:
    0 40px 100px -30px rgb(0 0 0 / 85%),
    0 0 0 1px rgb(142 176 255 / 5%),
    inset 0 1px 0 rgb(255 255 255 / 5%);
}

.board::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(142 176 255 / 55%), transparent);
  pointer-events: none;
}

.adv.is-fresh {
  background: linear-gradient(90deg, rgb(255 93 93 / 7%), transparent 60%);
}
