/* styles/panels/ecosystem.css — universal Linux ecosystem cards and marquee */
.ecosystem-view-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.ecosystem-view-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.ecosystem-viewport.marquee-mode {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.ecosystem-viewport.marquee-mode .ecosystem-grid {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ecosystem-marquee-scroll 55s linear infinite;
  will-change: transform;
}

.ecosystem-viewport.marquee-mode:hover .ecosystem-grid {
  animation-play-state: paused;
}

@keyframes ecosystem-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ecosystem-viewport.marquee-mode .eco-card {
  width: 480px;
  max-width: 85vw;
  flex-shrink: 0;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.eco-card {
  background: rgba(17, 20, 23, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eco-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.eco-card-highlight {
  border-color: rgba(var(--accent-rgb, 255, 176, 0), 0.3);
  background: linear-gradient(175deg, rgba(24, 28, 32, 0.95) 0%, rgba(18, 21, 23, 0.95) 100%);
}
.eco-card-highlight:hover {
  border-color: var(--phosphor);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb, 255, 176, 0), 0.08);
}

.eco-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eco-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--phosphor);
  letter-spacing: 0.06em;
}

.eco-badge-hot {
  color: var(--hot);
}

.eco-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.eco-desc {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.eco-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.eco-pill:hover {
  border-color: var(--border-focus);
  color: #fff;
}

.pill-dot {
  color: var(--phosphor);
  font-size: 9px;
}

.eco-spec-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 4px;
}

.eco-spec-key {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.eco-spec-val {
  color: var(--hot);
  font-family: var(--font-mono);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 900px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .eco-card {
    padding: 18px;
  }
}
