/* Stat Card Styles - Theme Support */
.light-mode .stat-card {
  background: #ffffff;
  border-radius: var(--border-radius, 8px);
  /* padding: 1.25rem 1.5rem; */
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.night-mode .stat-card {
  background: #363434;
  border-radius: var(--border-radius, 8px);
  /* padding: 1.25rem 1.5rem; */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.light-mode .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #f21b23;
}

.night-mode .stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 27, 35, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.stat-card--clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.light-mode .stat-card--clickable:hover {
  border-color: #f21b23;
}

.night-mode .stat-card--clickable:hover {
  border-color: rgba(242, 27, 35, 0.5);
}

.stat-card-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px;
  /* gap: 1rem; */
}

.stat-card-info {
  flex: 1;
  min-width: 0;
  margin-right: 2rem;
}

.light-mode .stat-card-label {
  font-size: 0.8rem;
  color: #4d4d4f;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.night-mode .stat-card-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.light-mode .stat-card-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.night-mode .stat-card-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 0.35rem;
}

.light-mode .stat-card-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #616161;
  margin-bottom: 0.35rem;
}

.night-mode .stat-card-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.light-mode .stat-card-description {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #757575;
  margin: 0 0 0.5rem 0;
  max-width: 100%;
}

.night-mode .stat-card-description {
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.5rem 0;
  max-width: 100%;
}

.stat-card-change {
  font-size: 0.85rem;
  font-weight: 600;
}

.light-mode .stat-card-change.up {
  color: #1a1a1a;
}

.night-mode .stat-card-change.up {
  color: rgba(255, 255, 255, 0.9);
}

.light-mode .stat-card-change.down {
  color: #666;
}

.night-mode .stat-card-change.down {
  color: rgba(255, 255, 255, 0.65);
}

.light-mode .stat-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.light-mode .stat-card-icon svg {
  width: 26px;
  height: 26px;
}

.night-mode .stat-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
}

.night-mode .stat-card-icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 768px) {
  .stat-card {
    padding: 1rem 1rem;
  }
  .stat-card-value {
    font-size: 1.75rem;
  }
  .stat-card-label {
    font-size: 0.75rem;
  }
  .stat-card-description {
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .stat-card-icon {
    width: 40px;
    height: 40px;
  }
  .stat-card-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 0.875rem 1rem;
  }
  .stat-card-value {
    font-size: 1.5rem;
  }
  .stat-card-content {
    gap: 0.75rem;
  }
}
