/* Ecosystem Dashboard — uses Shibuya theme CSS custom properties */

.eco-dashboard {
  margin-top: 1rem;
}

.eco-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.eco-header p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.95rem;
  flex: 1;
}

.eco-refresh {
  background: transparent;
  border: 1px solid var(--sy-c-divider);
  color: var(--sy-c-text);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.eco-refresh:hover {
  border-color: var(--sy-c-link);
  color: var(--sy-c-link);
}

.eco-group-title {
  border-bottom: 1px solid var(--sy-c-divider);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.eco-card {
  background: var(--sy-c-surface);
  border: 1px solid var(--sy-c-divider);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eco-card-top {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  flex-direction: row-reverse;
}

.eco-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  flex-shrink: 0;
}

.eco-card-top-text {
  flex: 1;
  min-width: 0;
}

.eco-card-header a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sy-c-text);
  text-decoration: none;
}

.eco-card-header a:hover {
  color: var(--sy-c-link);
}

.eco-card-desc {
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1.4;
}

.eco-card-version {
  font-size: 0.85rem;
}

.eco-card-stats {
  font-size: 0.85rem;
}

.eco-separator {
  margin: 0 0.3rem;
  opacity: 0.5;
}

.eco-card-links {
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sy-c-divider);
}

.eco-card-links a {
  color: var(--sy-c-link);
  text-decoration: none;
}

.eco-card-links a:hover {
  text-decoration: underline;
}

.eco-issues a,
.eco-prs a {
  color: inherit;
  text-decoration: none;
}

.eco-issues a:hover,
.eco-prs a:hover {
  color: var(--sy-c-link);
}
