/* ============================================================
   /cve/trending — three-column trending CVE view (modern)
   ============================================================ */

.cvt-hero {
    margin-bottom: 18px;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 16px;
    color: #F1F5F9;
    position: relative;
    overflow: hidden;
}
.cvt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: 0.6;
}
.cvt-hero-inner { position: relative; z-index: 1; }
.cvt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 14px;
}
.cvt-hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #DC2626;
    display: inline-block;
}
.cvt-hero h1 {
    margin: 0 0 8px;
    font-size: 2.4rem;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.cvt-hero-sub {
    margin: 0;
    color: #CBD5E1;
    max-width: 760px;
    line-height: 1.55;
    font-size: 0.95rem;
}

/* ── KPI strip ──────────────────────────────────────────────── */
.cvt-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    margin-bottom: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.cvt-kpi {
    padding: 20px 22px;
    border-right: 1px solid var(--border-color);
}
.cvt-kpi:last-child { border-right: 0; }
@media (max-width: 720px) {
    .cvt-kpi { border-right: 0; border-bottom: 1px solid var(--border-color); }
    .cvt-kpi:last-child { border-bottom: 0; }
}
.cvt-kpi-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.cvt-kpi-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-top: 8px;
    font-weight: 700;
}

/* ── Three-column grid ──────────────────────────────────────── */
.cvt-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 980px) {
    .cvt-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Keep .cve-section as the column frame; override from cve.css so the
   trending page uses the same bordered panel pattern as /ransomware. */
.cvt-cols .cve-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px 22px;
    margin-bottom: 0;
}
.cvt-cols .cve-section h2 {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.cvt-section-help {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 8px;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Row (CVE list item) ────────────────────────────────────── */
.cvt-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: border-color 100ms ease;
}
.cvt-row:hover {
    border-color: #DC2626;
}

.cvt-cve-id {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 0 0 auto;
    min-width: 130px;
    letter-spacing: -0.01em;
}
.cvt-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cvt-product {
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cvt-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.cvt-chip {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.cvt-chip-critical { background: rgba(220, 38, 38, 0.12); color: #DC2626; }
.cvt-chip-high     { background: rgba(234, 88, 12, 0.12); color: #EA580C; }
.cvt-chip-medium   { background: rgba(217, 119, 6, 0.12); color: #D97706; }
.cvt-chip-low      { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.cvt-chip-ransom   { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }
.cvt-chip-actors   { background: rgba(220, 38, 38, 0.10); color: #DC2626; }
.cvt-chip-kev      { background: rgba(220, 38, 38, 0.12); color: #DC2626; }

.cvt-right {
    flex: 0 0 auto;
    text-align: right;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    min-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.cvt-right strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    font-weight: 800;
    text-transform: none;
}
