/* ============================================
   Arrest Record Cards
   ============================================ */
.arrest-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.arrest-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arrest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.arrest-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.arrest-number {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Consolas', monospace;
  margin-left: 8px;
  white-space: nowrap;
}

.arrest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.arrest-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.arrest-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.arrest-offense {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.arrest-narrative {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.arrest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.arrest-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.arrest-badge.agency {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.arrest-badge.location {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* Offense count badge on card */
.offense-count-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(239, 68, 68, 0.25));
  color: #fb923c;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* ============================================
   Arrest Detail View
   ============================================ */
.arrest-detail {
  padding-bottom: 20px;
}

.arrest-detail-header {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 12px;
}

.arrest-detail-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.arrest-id {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Consolas', monospace;
}

.arrest-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.arrest-detail-grid .detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arrest-detail-grid .detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.arrest-detail-grid .detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Arrest Section (Charges, Narrative) */
.arrest-section {
  margin-bottom: 20px;
}

.arrest-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.arrest-section h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--danger), #f97316);
  border-radius: 2px;
}

/* Charges list on detail view */
.charges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.charge-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  transition: var(--transition);
}

.charge-item:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
  border-color: rgba(239, 68, 68, 0.25);
  transform: translateX(4px);
}

.charge-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--danger), #f97316);
  color: white;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.charge-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.charge-description {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

.charge-statute {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.charge-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.charge-date::before {
  content: '📅';
  font-size: 0.7rem;
}

/* Narrative section */
.arrest-narrative-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-dark);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .arrest-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .charge-item {
    padding: 12px;
    gap: 10px;
  }

  .charge-number {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .charge-description {
    font-size: 0.9rem;
  }
}