:root {
  --primary: #2563eb;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card-bg: #ffffff;
}

body {
  background-color: black;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 20px;
}

/* The Grid Container */
.card-grid {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Card */
.vuln-card {
  break-inside: avoid; /* Prevents card from splitting across columns */
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.vuln-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Typography & Elements */
.cve-badge {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  color: #1e293b;
  line-height: 1.3;
}

.desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* POC Section - Better Padding & Contrast */
.poc-section {
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  margin: 1rem 0;
}

.poc-section strong {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 5px;
}

.poc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
}

.poc-list a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

/* Footer Styling */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 12px;
}

.btn-view {
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.severity-high { border-left: 8px solid #d9534f; }
.severity-critical { border-left: 8px solid purple; background: #fff0f0; }
.severity-medium { border-left: 8px solid #f0ad4e; }

/* Responsive */
@media (max-width: 1024px) { .card-grid { column-count: 2; } }
@media (max-width: 640px) { .card-grid { column-count: 1; } }