.state-card {
  display: block;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.state-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #e6f3ff;
}

.state-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.state-info {
  flex: 1;
}

.state-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.state-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #718096;
  flex-wrap: wrap;
  min-width: 0;
}

.state-mps {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.state-rank {
  background: #f7fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  color: #2c5282;
}

.state-icon {
  width: 48px;
  height: 48px;
  background: #e6f3ff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2c5282;
  flex-shrink: 0;
}

.state-metrics {
  border-top: 1px solid #f7fafc;
  border-bottom: 1px solid #f7fafc;
  padding: 1.25rem 0;
  margin: 0 -0.5rem;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.813rem;
  color: #718096;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}

.utilization-section {
  margin-bottom: 1rem;
}

.utilization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.utilization-label {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

.utilization-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.utilization-value svg {
  font-size: 1rem;
}

.utilization-high {
  color: #22543d;
}

.utilization-medium {
  color: #c05621;
}

.utilization-low {
  color: #c53030;
}

.utilization-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.utilization-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.utilization-fill.utilization-high {
  background: #48bb78;
}

.utilization-fill.utilization-medium {
  background: #ed8936;
}

.utilization-fill.utilization-low {
  background: #e53e3e;
}

.works-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.works-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.works-icon {
  font-size: 1.25rem;
  color: #48bb78;
}

.works-info {
  display: flex;
  flex-direction: column;
}

.works-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.works-label {
  font-size: 0.75rem;
  color: #718096;
}

.completion-rate {
  text-align: right;
}

.rate-label {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-bottom: 0.125rem;
}

.rate-value {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5282;
}

.state-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
}

.view-details {
  color: #2c5282;
  font-weight: 500;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .state-card {
    padding: 1.25rem;
  }

  .state-name {
    font-size: 1.125rem;
    max-width: 85%;
  }

  .metric-row {
    gap: 0.75rem;
  }
}

/* Ultra-small devices fixes (<=400px) */
@media (max-width: 400px) {
  .state-card {
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .state-card-header {
    gap: 0.75rem;
  }

  .state-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .utilization-label {
    font-size: 0.8125rem;
  }

  .utilization-value {
    font-size: 0.875rem;
  }

  .works-section {
    flex-direction: row;
    justify-content: space-between;
  }

  .rate-value {
    font-size: 0.9375rem;
  }
}