/* Threat Assessment Cards - Donroe Doctrine Article */

.threat-cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.threat-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.threat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.threat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.threat-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.threat-score {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.threat-details {
  line-height: 1.6;
  color: #475569;
}

.threat-details strong {
  color: #1e293b;
  font-weight: 600;
}

/* Tier-specific styling */
.tier-one {
  border-color: #dc2626;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.tier-one .threat-score {
  background: #dc2626;
  color: white;
}

.tier-one .threat-header h4 {
  color: #dc2626;
}

.tier-two {
  border-color: #ea580c;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.tier-two .threat-score {
  background: #ea580c;
  color: white;
}

.tier-two .threat-header h4 {
  color: #ea580c;
}

.tier-three {
  border-color: #ca8a04;
  background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

.tier-three .threat-score {
  background: #ca8a04;
  color: white;
}

.tier-three .threat-header h4 {
  color: #ca8a04;
}

/* Domestic cards styling */
.domestic {
  border-left: 6px solid #7c3aed;
}

.domestic .threat-header h4 {
  color: #7c3aed;
}

/* Responsive design */
@media (min-width: 768px) {
  .threat-cards {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 767px) {
  .threat-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .threat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .threat-header h4 {
    font-size: 1rem;
  }

  .threat-score {
    align-self: flex-end;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Print styles */
@media print {
  .threat-card {
    break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
    background: white;
    margin-bottom: 1rem;
  }

  .tier-one, .tier-two, .tier-three, .domestic {
    background: white;
  }
}