/* Civic Alerts Styles */

.civic-alerts-list {
  margin: 1.5rem 0;
}

.civic-alerts-list .alerts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.civic-alerts-list .alerts-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.civic-alerts-list .alerts-more-link {
  font-size: 0.9rem;
  color: #0066cc;
  text-decoration: none;
}

.civic-alerts-list .alerts-more-link:hover {
  text-decoration: underline;
}

.civic-alerts-list .alerts-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.civic-alerts-list .alerts-footer {
  margin-top: 1rem;
  text-align: center;
}

/* Alert Card */
.civic-alert-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 4px solid #ccc;
  background: #f9f9f9;
}

.civic-alert-card.alert-extreme {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.civic-alert-card.alert-severe {
  border-left-color: #ea580c;
  background: #fff7ed;
}

.civic-alert-card.alert-moderate {
  border-left-color: #ca8a04;
  background: #fefce8;
}

.civic-alert-card.alert-minor {
  border-left-color: #2563eb;
  background: #eff6ff;
}

.civic-alert-card .alert-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.civic-alert-card.compact .alert-icon {
  font-size: 1.25rem;
}

.civic-alert-card .alert-content {
  flex: 1;
  min-width: 0;
}

.civic-alert-card .alert-title {
  font-weight: 600;
  color: #222;
  margin-bottom: 0.25rem;
}

.civic-alert-card.compact .alert-title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.civic-alert-card .alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.civic-alert-card .alert-meta-compact {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.civic-alert-card .alert-severity {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.civic-alert-card .alert-severity-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.civic-alert-card.alert-extreme .alert-severity,
.civic-alert-card.alert-extreme .alert-severity-badge {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.civic-alert-card.alert-severe .alert-severity,
.civic-alert-card.alert-severe .alert-severity-badge {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
}

.civic-alert-card.alert-moderate .alert-severity,
.civic-alert-card.alert-moderate .alert-severity-badge {
  color: #ca8a04;
  background: rgba(202, 138, 4, 0.1);
}

.civic-alert-card.alert-minor .alert-severity,
.civic-alert-card.alert-minor .alert-severity-badge {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.civic-alert-card .alert-summary {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.civic-alert-card .alert-link {
  font-size: 0.85rem;
  color: #0066cc;
  text-decoration: none;
}

.civic-alert-card .alert-link:hover {
  text-decoration: underline;
}

/* Full alerts page */
.cdk-alerts-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.cdk-alerts-page h1 {
  margin-bottom: 1.5rem;
}

.cdk-alerts-page .alerts-empty {
  padding: 2rem;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: #666;
}

.cdk-alerts-page .civic-alert-card {
  margin-bottom: 1rem;
}

/* Date filter styles */
.alerts-filter {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
}

.filter-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.filter-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 0 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  background: #fff;
}

.filter-btn:hover {
  background: #e9e9e9;
}

.filter-btn--active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.filter-btn--active:hover {
  background: #005a87;
}

.alerts-count {
  color: #666;
  margin-bottom: 1rem;
}
