/* Threat Intelligence Scanner Styles */

.threat-result-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.result-header h3 {
  color: #3b82f6;
  font-size: 1.25rem;
  margin: 0;
}

.result-ip {
  font-family: 'Courier New', monospace;
  color: #10b981;
  font-size: 1.1rem;
  font-weight: bold;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.summary-label {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
}

.summary-value.risk-score {
  font-size: 2rem;
}

.result-sources {
  margin-bottom: 1.5rem;
}

.result-sources h4 {
  color: #3b82f6;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.source-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.result-details {
  margin-bottom: 1rem;
}

.result-details h4 {
  color: #3b82f6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.detail-section {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.detail-section h5 {
  color: #10b981;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.detail-content {
  display: grid;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 4px;
}

.detail-key {
  color: #94a3b8;
  font-size: 0.875rem;
}

.detail-value {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.result-timestamp {
  color: #64748b;
  font-size: 0.75rem;
  text-align: right;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.loading-container {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-container .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-container p {
  color: #94a3b8;
  margin: 0.5rem 0;
}

.loading-sources {
  color: #64748b;
  font-size: 0.875rem;
}

.error-container {
  text-align: center;
  padding: 2rem 1rem;
  color: #ef4444;
}

.error-container i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-container p {
  font-size: 1rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .result-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-value {
    font-size: 1.25rem;
  }

  .summary-value.risk-score {
    font-size: 1.5rem;
  }
}
