.widget-card--hidden {
  opacity: 0.6;
}

.widget-card__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.widget-card__icon {
  font-size: var(--font-size-2xl, 1.25rem);
  color: var(--primary-color);
  flex-shrink: 0;
}

.widget-card__title {
  margin: 0;
  font-size: var(--font-size-xl, 1.125rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
  flex: 1 1 auto;
  min-width: 120px;
}

.widget-card__hidden-badge {
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-light);
}

.widget-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;

  button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;

    &:hover:not(:disabled) {
      border-color: var(--primary-color);
      color: var(--primary-color);
    }

    &:focus-visible {
      outline: 2px solid var(--primary-color);
      outline-offset: 2px;
    }

    &:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
  }
}

.widget-card__remove:hover:not(:disabled) {
  border-color: var(--error-color);
  color: var(--error-color);
}

.widget-card__visible-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary);
}

.widget-card__advanced {
  margin-top: var(--space-sm);

  summary {
    cursor: pointer;
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-light);
  }
}

.widget-card__subheading { margin: 12px 0 4px; font-size: var(--font-size-base, 0.875rem); }

.hero-slide-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;

  app-input { flex: 1; }
}

.hero-slide-row__remove {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  font-size: var(--font-size-lg, 1rem);

  &:hover { color: var(--error-color, #c0392b); }
}
